@璐村惂鐢ㄦ埛_000076K馃惥 off
rem 按指定样式/格式处理txt文件里的数据
set #=Any question&set $=Q&set/az=0x53b7e0b4
title %#% +%$%%$% %z%
cd /d "%~dp0"
set "txtfile=1.txt"
>"%tmp%\t.t" echo;while(!WSH.StdIn.AtEndOfStream){s=WSH.StdIn.ReadLine().replace(/^^\s*^|\s*$/g,'');
>>"%tmp%\t.t" echo;WSH.echo(s.replace(/^^(?=00^|30)/,"0|").replace(/^^(?=60)/,"1|").replace(/(\.\S+)?\s+/,"|"));}
type "%txtfile%"|cscript -nologo -e:jscript "%tmp%\t.t"
:end
echo;%#% +%$%%$% %z%
pause
rem 按指定样式/格式处理txt文件里的数据
set #=Any question&set $=Q&set/az=0x53b7e0b4
title %#% +%$%%$% %z%
cd /d "%~dp0"
set "txtfile=1.txt"
>"%tmp%\t.t" echo;while(!WSH.StdIn.AtEndOfStream){s=WSH.StdIn.ReadLine().replace(/^^\s*^|\s*$/g,'');
>>"%tmp%\t.t" echo;WSH.echo(s.replace(/^^(?=00^|30)/,"0|").replace(/^^(?=60)/,"1|").replace(/(\.\S+)?\s+/,"|"));}
type "%txtfile%"|cscript -nologo -e:jscript "%tmp%\t.t"
:end
echo;%#% +%$%%$% %z%
pause