Can i search in a file for more than one string at a time? And copy the next string after that and paste it in column style? Is it possible? Thanks!
How about showing an example of copying "in column style" ?
tyler_durden
The file looks like this:
NAME: ABC AGE: 8
ADD: XXX
ETC: 8XMG
The output file will look like this:
ABC 8 XXX 8XMG
Note: The above file appears many times.
perl -ne 's/\n/ /; s/(NAME|AGE|ADD|ETC): //g; print' <file>
tyler_durden
That would help me a lot. I thought of grep-ing one string at a time, then copy and pasting it! Your code will ease up my problem. Thanks a lot bud!