|
发表于 2013-10-31 22:20:01
|
显示全部楼层
@echo off
setlocal enabledelayedexpansion
for /f "tokens=*" %%i in ('type 1.txt') do (
set text=%%i
set size=0
for %%a in (G21 G18 G50 G96) do (
if /i "!text:~0,3!" == "%%a" (
set size=1
)
)
if "!text:~0,1!" == "(" (set size=1)
if !size! == 0 (
echo %%i >>2.txt
)
)
pause
|
|