Date: Sat, 17 Jan 2004 21:04:33 -0800 From: Gary Kline <kline@thought.org> To: Matt Emmerton <matt@gsicomp.on.ca> Cc: FreeBSD Mailing List <freebsd-questions@freebsd.org> Subject: Re: stumped... . Message-ID: <20040118050433.GA68597@tao.thought.org> In-Reply-To: <002601c3dd74$55f46250$1200a8c0@gsicomp.on.ca> References: <20040118030911.GA18161@tao.thought.org> <002601c3dd74$55f46250$1200a8c0@gsicomp.on.ca>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Jan 17, 2004 at 10:37:00PM -0500, Matt Emmerton wrote:
> If I'm understanding your question correctly, this Perl script should do it.
>
> #!/bin/perl
>
> while (<>)
> {
> if (/^PATTERN/) { last; }
> print $_;
> }
>
this does fit into a trivial sh script. thanks.
--
Gary Kline kline@thought.org www.thought.org Public service Unix
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040118050433.GA68597>
