Hello AWK Gurus,
The command stream is stored in a file and looks like this:
-CT LATM -CS -CD DEMO -CA RACK -CAP TOGGLE -RP GLS7002 -I 372 -R test -CO USER -OT 6 -OP /src/test/log/TI09887 2 -OF 2 -DE "This is a test message"
I need to identify the paramater after -I, -CO and -DE flags and put them in vaiables, e.g. in this case:
$VAR1 = 372
$VAR2 = USER
$VAR3 = This is a test message
Also, I need to edit the command by deleting this bit and putting it to another file:
-DE "This is a test message" <- Remove this part
Thanks for your help!
Janise
The command stream is stored in a file and looks like this:
-CT LATM -CS -CD DEMO -CA RACK -CAP TOGGLE -RP GLS7002 -I 372 -R test -CO USER -OT 6 -OP /src/test/log/TI09887 2 -OF 2 -DE "This is a test message"
I need to identify the paramater after -I, -CO and -DE flags and put them in vaiables, e.g. in this case:
$VAR1 = 372
$VAR2 = USER
$VAR3 = This is a test message
Also, I need to edit the command by deleting this bit and putting it to another file:
-DE "This is a test message" <- Remove this part
Thanks for your help!
Janise