@echo off0 e' l- d# C& j. J2 \3 l
setlocal enabledelayedexpansion
7 L6 g( _0 c/ @ x ofor /f "tokens=*" %%i in ('type 1.txt') do ($ P" o. n5 T; ~, g f
set text=%%i; ~: b* k6 r+ R
set size=0: a, h. N: U/ E$ V
for %%a in (G21 G18 G50 G96) do (* C0 I8 f7 g# G5 Y, x3 c
if /i "!text:~0,3!" == "%%a" (: p I2 A3 P/ t6 Z, A d. \+ n
set size=1
n' h0 g) a; V ), z9 x" H) c4 q6 ^4 n6 d& E, j
)
' i9 b; S1 b8 C: n. \3 C if "!text:~0,1!" == "(" (set size=1)/ ]1 ^( e# d) ?8 j
if !size! == 0 (' u: ~+ a7 K, M$ }( i: t x
echo %%i >>2.txt
* N) \( Q+ E. G8 d9 u; P6 z* s& r* I ) _' z) i) y f4 c* _
)" q1 q" T% K) @$ P. H
pause/ g) Y1 k- J, W7 y- @2 W) e
|