本帖最后由 DiamondbacK 于 2016-9-22 19:47 编辑
- for /f "tokens=1,2,3,4 delims=,。?!" %%A in (1.txt) do (
- echo %%A
- echo %%B
- echo %%C
- echo %%D
- )
复制代码
- >con sed -r "s/[,。?!]+/\n/g" 1.txt
复制代码
- >con gawk -v RS=[,。?!] 1 1.txt
复制代码
- >con gawk "{ gsub(/[,。?!]/, \"\n\"); } 1" 1.txt
复制代码
- PowerShell -c "(Get-Content 1.txt) -replace '[,。?!]', \"`n\""
复制代码
|