On Sun, 18 Jan 2004 14:18, Gautam Gopalakrishnan wrote:
> On Sat, Jan 17, 2004 at 07:09:12PM -0800, Gary Kline wrote:
> >     I've written scores of scripts to hack text files, but this
> >     one has me dead in the water.
> >
> >     How can I delete all lines from /^PATTERN to EOF??
>
> sed -e '/pattern/,$d'

I think:
   sed -e '/^PATTERN/,$d'

Malcolm


_______________________________________________
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to