Guest_imported
New member
- Jan 1, 1970
- 0
I have a big file and need to process it based on the first 5 letters of line one.
By knowing the 5 letters, I need to choose the appropriate processing command.
Example....
TIMES jlsadfsjl;kl;sdfjsdfsd sdfj;sdl;fksd
asjks sdjasl;fkasl; asfjal;sf asl;fkasd;lfa
asdas djfkfjsdk ,. sdafjsdfkjdjkfsdfj sdkds
I should be able to read and compare the "TIMES" to choose appropriate command to process the file.
Any sample code using awk will be useful.
Thanks in advance.
-Jay
By knowing the 5 letters, I need to choose the appropriate processing command.
Example....
TIMES jlsadfsjl;kl;sdfjsdfsd sdfj;sdl;fksd
asjks sdjasl;fkasl; asfjal;sf asl;fkasd;lfa
asdas djfkfjsdk ,. sdafjsdfkjdjkfsdfj sdkds
I should be able to read and compare the "TIMES" to choose appropriate command to process the file.
Any sample code using awk will be useful.
Thanks in advance.
-Jay