Mar 21, 2004 #1 grofaty IS-IT--Management Jan 16, 2003 370 SI Hi, I would like to get value X1 from line 1 (see sample bellow) and Y1 from line 2. Sample ABC = X1 Y 2.1 ABC = Y1 Z 1.1 My question: Is there someting like unix command 'awk' in Dos/Windows? Thanks, Grofaty
Hi, I would like to get value X1 from line 1 (see sample bellow) and Y1 from line 2. Sample ABC = X1 Y 2.1 ABC = Y1 Z 1.1 My question: Is there someting like unix command 'awk' in Dos/Windows? Thanks, Grofaty
Mar 22, 2004 #2 mooki Programmer Aug 1, 2000 32 IL try http://www.openetwork.com/berk.html Upvote 0 Downvote
Mar 22, 2004 Thread starter #3 grofaty IS-IT--Management Jan 16, 2003 370 SI Hi, I have found out how to do this in Windows: FOR /F "tokens=4" %%i IN (test.txt) DO ( echo %%i IF "%%i" == "DB2/NT" goto one IF "%%i" == "SQL/DS" goto two ) No help is needed anymore. Thanks, Grofaty Upvote 0 Downvote
Hi, I have found out how to do this in Windows: FOR /F "tokens=4" %%i IN (test.txt) DO ( echo %%i IF "%%i" == "DB2/NT" goto one IF "%%i" == "SQL/DS" goto two ) No help is needed anymore. Thanks, Grofaty