From owner-freebsd-questions@FreeBSD.ORG Sat Jan 17 21:04:55 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EA1B416A4CE for ; Sat, 17 Jan 2004 21:04:55 -0800 (PST) Received: from sage.thought.org (dsl231-043-140.sea1.dsl.speakeasy.net [216.231.43.140]) by mx1.FreeBSD.org (Postfix) with ESMTP id 30CC143D5F for ; Sat, 17 Jan 2004 21:04:45 -0800 (PST) (envelope-from kline@thought.org) Received: from thought.org (root@tao [10.0.0.247]) by sage.thought.org (8.12.9/8.11.4) with ESMTP id i0I54cGH048912; Sat, 17 Jan 2004 21:04:42 -0800 (PST) (envelope-from kline@thought.org) Received: (from kline@localhost) by thought.org (8.12.6/8.11.3) id i0I54Z5Z068613; Sat, 17 Jan 2004 21:04:35 -0800 (PST) (envelope-from kline) Date: Sat, 17 Jan 2004 21:04:33 -0800 From: Gary Kline To: Matt Emmerton Message-ID: <20040118050433.GA68597@tao.thought.org> References: <20040118030911.GA18161@tao.thought.org> <002601c3dd74$55f46250$1200a8c0@gsicomp.on.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <002601c3dd74$55f46250$1200a8c0@gsicomp.on.ca> X-Organization: Thought Unlimited. Public service Unix since 1986. X-Of_Interest: Observing 17 years of service to the Unix community User-Agent: Mutt/1.5.5.1i cc: Gary Kline cc: FreeBSD Mailing List Subject: Re: stumped... . X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Jan 2004 05:04:56 -0000 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