从某一文件中读取含有某一字符行时,可以用find命令。下面是自写的一个小脚本供大家参考。 dir /a-d /b *.17S QQ.txt @echo off setlocal EnableDelayedExpansion set j=0 for /f delims= %%i in (QQ.txt) do ( set /a j+=1 set con!j!=%%i call set a=%%con!j!%% echo !a! f ...
在 用teqc 进行数据预处理时觉得一个个做太麻烦,因而写了这个小脚本实现批处理。可以根据不同的目的添加不同的命令。 dir /a-d /b *.17o QQ.txt @echo off setlocal EnableDelayedExpansion set j=0 for /f delims= %%i in (QQ.txt) do ( set /a j+=1 set con!j!=%%i call set a=%%con!j!%% e ...