nihaoareyou 当前离线
列兵
TOP
mms0536 当前离线
上等兵
@echo off mkdir ok_dir for /r "txt所在目录" %%i in (*.txt) do ( for /f "tokens=1,2,3 delims= " %%a in (%%i) do ( call :del_str %%a %%b %%c %%i ) ) :del_dir echo %3 %2 %1 >.\ok_dir\%~n3.txt )复制代码
apang 当前离线
上将
sed -i -r "s/^\s*(\S+)(\s+\S+\s+)(\S+)/\3\2\1/" *.txt复制代码