- @echo off
- setlocal enabledelayedexpansion
- for /l %%f in (10001,1,xxxxx) do (
- set p=%%f
- gawk -F"=" "NR==FNR{A[$1]=$2;next}{print A[$0]}" "e:\SJKZ\!p:~1!\!p:~1!.txt" "z:\QWS\SJ.txt">"z:\KZ\001\1.txt"
- for /l %%l in (1,1,1000) do (
- set /a a=%%l*2-1,b=%%l*2
- set c=000%%l
- cut -c !a!-!b! z:\KZ\001\1.txt>>e:\QWS\01\!p:~1!\!p:~1!_!c:~-4!.txt
- )
- )
- endlocal
- exit
复制代码
|