I need a starting point to learn to accomplish the following action:
I need to take a plain text ascii file such as:
Foo
a line of variable text
another line of variable text
morelines
and
morelines
Foo
a line of variable text
another line of variable text
morelines
and
morelines
Foo
a line of variable text
another line of variable text
morelines
and
morelines
and I need to end up with:
Foo
morelines
and
morelines
Foo
morelines
and
morelines
Foo
morelines
and
morelines
In short, I want to see "Foo" in the file and delete the next two lines
following. This pattern can repeat hundreds of times within the file and
spread across multiple files.
I'd rather learn to write something in preference to using a canned module.
Thanks for your time.
--
Brian
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/