Hi all,
This seemed likan easy thing to do, but I am not getting it figured out. I hope someone can help.
I have a text file that contains the result of a Sybase data dump. I would like to extract the final dump line which gives the total kb dumped to tape, and then a few lines down the completion results. I can find the 1st line from the a one liner (perl -ne /Dump phase number 3/ dump.log), but when I try to put it into a while loop so I can stop searching, it never finds the /Dump phase number 3/ expression.
ANY suggestions to help will be appreciated.
Thanks in advance. A sample of the code is below
#
open(FILE,"dumptape.log") ||
die("Could open file");
$line = <FILE>;
#
while(<FILE>)
{
print if /Dump phase number 3/ ;
}
close FILE;