|
|
发表于 2016-11-11 18:32:39
|
显示全部楼层
本帖最后由 pcl_test 于 2018-4-19 11:48 编辑
回复 4# shero
1、powershell
-eq
-match
2、- @echo off
- for /f "tokens=*" %%a in ('type "文本.txt"') do (
- for /f "tokens=1,2" %%b in ("%%a") do (
- if "%%c" equ "0" echo;%%a
- )
- )
- pause
复制代码 3、- findstr /rc:"^[ ]*[^ ][^ ]*[ ][ ]*0[^0]*" "文本.txt"
- pause
复制代码 4、- #*第三方http://www.bathome.net/s/tool/index.html?key=gawk
- #*&cls&2>nul md "result\" &dir /a-d/b *.txt|gawk -f "%~f0"&pause&exit
- BEGIN{
- while(getline file>0){
- while(getline<file>0){
- if($2==0)print $0>"result\\"file
- }
- }
- }
复制代码 |
|