Ras has asked for the wisdom of the Perl Monks concerning the following question:
Forgive me if this is a stupid question but i want to be able to read certain lines in a file and print it to another file. For example:
FILE:
blah blah blah
blah blah blah
couldn't parse
line i want to print
blah blah blah
blah blah blah
The files is always in this formate where the line i want is right after the line couldn't parse. Is there anyway in perl to this quickly? Thanks you.
FILE:
blah blah blah
blah blah blah
couldn't parse
line i want to print
blah blah blah
blah blah blah
The files is always in this formate where the line i want is right after the line couldn't parse. Is there anyway in perl to this quickly? Thanks you.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Reading certain lines in a file
by davorg (Chancellor) on May 24, 2001 at 19:48 UTC | |
Re: Reading certain lines in a file
by AidanLee (Chaplain) on May 24, 2001 at 18:15 UTC | |
Re: Reading certain lines in a file
by mr.nick (Chaplain) on May 24, 2001 at 18:21 UTC | |
Re: Reading certain lines in a file
by tachyon (Chancellor) on May 24, 2001 at 18:31 UTC | |
by John M. Dlugosz (Monsignor) on May 24, 2001 at 21:50 UTC | |
Re: Reading certain lines in a file
by kilinrax (Deacon) on May 24, 2001 at 18:23 UTC | |
Re: Reading certain lines in a file
by mrmick (Curate) on May 24, 2001 at 18:33 UTC |
Back to
Seekers of Perl Wisdom