stumped... .
Nathan Kinkade
nkinkade at ub.edu.bz
Sun Jan 18 07:55:30 PST 2004
On Sat, Jan 17, 2004 at 09:06:45PM -0800, Gary Kline wrote:
> On Sun, Jan 18, 2004 at 02:48:42PM +1100, 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'
> >
>
> Yep. Thisis what i used, in fact. thanks.
>
> gary
Here is another option using sed that takes 2 less keystrokes :)
$ sed -e '/pattern/q'
Nathan
--
gpg --keyserver pgp.mit.edu --recv-keys D8527E49
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20040118/9217d67f/attachment.bin
More information about the freebsd-questions
mailing list