回复 5# 思想之翼
- @echo off
- for /l %%f in (1000001,1,1001624) do (
- setlocal enabledelayedexpansion
- set p=%%f
- XXXXXXX '【循环改变 e:\1\ ~ e:\7\ 文件夹下的文件】
-
- for /l %%a in (1001,1,1999) do (
- set n=%%a
- for /l %%b in (1,1,7) do (
- if not exist "e:\%%b\!n:~-3!.txt" (
- set m=1
- )
- )
- if not defined m (
- gawk -F"=" "NR==FNR{A[$1]=$2;next}{print A[$0]}" d:\!n:~-3!.txt e:\1\!n:~-3!.txt>>f:\!n:~-3!.txt
- ) else (
- set m=
- )
- )
- endlocal
- )
复制代码
|