Hello,
I had been trying to extract two consecutive lines starting from a line containing words and send the output to another file, but was not successful. Can some one give me a hand on this please.
Here is the input file format. . . .
. .
. . .
. . . . .
Creating archive destination LOG_ARCHIVE_DEST_1:
ARC0: Completed archiving log 2 thread 1 sequence 14475
Sat Apr 21 05:01:41 2007
Thread 1 advanced to log sequence 14477
. . . . . . .
. . . . . . . .
and I am trying to capture every line with "ARCO : Completed" phrase and the next line to it.
Thank you in advance,
SAY
I had been trying to extract two consecutive lines starting from a line containing words and send the output to another file, but was not successful. Can some one give me a hand on this please.
Here is the input file format. . . .
. .
. . .
. . . . .
Creating archive destination LOG_ARCHIVE_DEST_1:
ARC0: Completed archiving log 2 thread 1 sequence 14475
Sat Apr 21 05:01:41 2007
Thread 1 advanced to log sequence 14477
. . . . . . .
. . . . . . . .
and I am trying to capture every line with "ARCO : Completed" phrase and the next line to it.
Thank you in advance,
SAY