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
In reply to Matching Multiple Lines by Wally Hartshorn
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |