perl -0777 -pi.bak -e 's/^0(.*\n){1,8}//mg' file
Sure it's a lot more compact, but it suffers the same problem as my non-regex solution, is going to suck majorly for large files, and is (IMHO) less obvious about what it's actually doing, especially to those unfamiliar with Perl (YMMV).
--k.
Update: Oops, meant -0777 not -00.
In reply to Re: Matching Multiple Lines (Re: A Clarification)
by Kanji
in thread Matching Multiple Lines
by Wally Hartshorn
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |