Wally Hartshorn has asked for the wisdom of the Perl Monks concerning the following question:
Problem: Search a file for all lines beginning with "0", then in each case delete those lines and the next 7 lines (which can begin with anything).
Bonus Problem: Do the same thing using shell commands (e.g. sed) instead of Perl.
Solution: I don't know; that's why I'm asking.
Wally Hartshorn
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Matching Multiple Lines
by Kanji (Parson) on Jan 02, 2003 at 21:48 UTC | |
|
A Clarification
by Wally Hartshorn (Hermit) on Jan 02, 2003 at 22:44 UTC | |
by Kanji (Parson) on Jan 02, 2003 at 23:45 UTC | |
by Wally Hartshorn (Hermit) on Jan 03, 2003 at 15:16 UTC |