I actually like ikegami's solution better, but this is what I thought of first:
perl -pi -e 'BEGIN{$/="\cB"} s{-{6}\sYahoo.*\z}{$/}ms' list of files
In reply to Re: How do I delete from a delimiter to the end of a file?
by kyle
in thread How do I delete from a delimiter to the end of a file?
by wcw
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |