Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 18 Jan 2004 10:22:46 -0800
From:      "Lee Mx" <lee_ver_mx@hotmail.com>
To:        nkinkade@ub.edu.bz, kline@thought.org
Cc:        freebsd-questions@freebsd.org
Subject:   Re: stumped... .
Message-ID:  <BAY8-F43geskuibevDu0002c4d8@hotmail.com>

next in thread | raw e-mail | index | archive | help
>From: Nathan Kinkade <nkinkade@ub.edu.bz>
>Reply-To: Nathan Kinkade <nkinkade@ub.edu.bz>
>To: Gary Kline <kline@thought.org>
>CC: FreeBSD Mailing List <freebsd-questions@freebsd.org>
>Subject: Re: stumped... .
>Date: Sun, 18 Jan 2004 09:54:23 -0600
>
>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'

This would give line 1 to the pattern, wouldn't it,  Rather than pattern to 
EOF.

>
>Nathan
>--
>gpg --keyserver pgp.mit.edu --recv-keys D8527E49
><< attach3 >>

_________________________________________________________________
There are now three new levels of MSN Hotmail Extra Storage!  Learn more. 
http://join.msn.com/?pgmarket=en-us&page=hotmail/es2&ST=1



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?BAY8-F43geskuibevDu0002c4d8>