whatisthis987
IS-IT--Management
Hi guys,
I would like to print the line before and the line after "JohnDoe" is found. For example,
===Input text file===
line1
line2
JohnDoe blah blah blah
line4
line5
===Desired output file===
line2
line4
Can someone suggest a good way of doing this?
I would like to print the line before and the line after "JohnDoe" is found. For example,
===Input text file===
line1
line2
JohnDoe blah blah blah
line4
line5
===Desired output file===
line2
line4
Can someone suggest a good way of doing this?