iceman4000000
Programmer
Hi all,
Was wondering if anyone knew how to grep a line, and also pull out the line that immediately follows it...
For example - we have a program that sends tcp strings to a database and then gets a string back which all goes into a log file. I can grep the send string fine - but is there an easy way to simply pull out that line and the following line (which should be the answer from the database)??
Any help would be much appreciated.
ICE
Was wondering if anyone knew how to grep a line, and also pull out the line that immediately follows it...
For example - we have a program that sends tcp strings to a database and then gets a string back which all goes into a log file. I can grep the send string fine - but is there an easy way to simply pull out that line and the following line (which should be the answer from the database)??
Any help would be much appreciated.
ICE