Searching a text file - complicated
have a question on how to grep (sed or awk) thru a file and pull back 2 lines. Line 1 has an error code and time stamp, line 2 which is directly below it has a string that i am searching for. How can I search and pull out line 2 to a file and also bring the line above it?
|