一种办法是分段获取,像这样:- @echo off
- for /f "tokens=31* delims=," %%i in (1.txt) do (
- for /f "tokens=23 delims=," %%k in ("%%j") do echo;%%k
- )
- pause
复制代码 其中 31+23 = 54
另一种办法是计数,像这样:- @echo off
- for /f "delims=" %%i in (1.txt) do (
- set n=0
- for %%j in (%%i) do (
- set /a n+=1, "1/(n-54)" || echo;%%j
- )
- )
- pause
复制代码
|