From owner-freebsd-questions@FreeBSD.ORG Wed Aug 18 14:29:46 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 51223106564A for ; Wed, 18 Aug 2010 14:29:46 +0000 (UTC) (envelope-from guru@unixarea.de) Received: from ms16-1.1blu.de (ms16-1.1blu.de [89.202.0.34]) by mx1.freebsd.org (Postfix) with ESMTP id 0A8EA8FC14 for ; Wed, 18 Aug 2010 14:29:45 +0000 (UTC) Received: from [193.31.11.193] (helo=current.Sisis.de) by ms16-1.1blu.de with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.69) (envelope-from ) id 1Olje7-0003Nd-P7; Wed, 18 Aug 2010 16:29:39 +0200 Received: from current.Sisis.de (current [127.0.0.1]) by current.Sisis.de (8.14.3/8.14.3) with ESMTP id o7IETdcG005159; Wed, 18 Aug 2010 16:29:39 +0200 (CEST) (envelope-from guru@unixarea.de) Received: (from guru@localhost) by current.Sisis.de (8.14.3/8.14.3/Submit) id o7IETd1X005158; Wed, 18 Aug 2010 16:29:39 +0200 (CEST) (envelope-from guru@unixarea.de) X-Authentication-Warning: current.Sisis.de: guru set sender to guru@unixarea.de using -f Date: Wed, 18 Aug 2010 16:29:39 +0200 From: Matthias Apitz To: "Jack L. Stone" Message-ID: <20100818142939.GA5129@current.Sisis.de> Mail-Followup-To: Matthias Apitz , "Jack L. Stone" , "A. Wright" , "freebsd-questions@freebsd.org" References: <3.0.1.32.20100818084231.00ecef30@sage-american.com> <3.0.1.32.20100818084231.00ecef30@sage-american.com> <3.0.1.32.20100818092237.00ecef30@sage-american.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <3.0.1.32.20100818092237.00ecef30@sage-american.com> User-Agent: Mutt/1.4.2.3i X-Operating-System: FreeBSD 8.0-CURRENT (i386) X-Con-Id: 51246 X-Originating-IP: 193.31.11.193 Cc: "A. Wright" , "freebsd-questions@freebsd.org" Subject: Re: Extracting a variable listing X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Matthias Apitz List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Aug 2010 14:29:46 -0000 El día Wednesday, August 18, 2010 a las 09:22:37AM -0500, Jack L. Stone escribió: > At 10:53 AM 8.18.2010 -0300, A. Wright wrote: > >On Wed, 18 Aug 2010, Jack L. Stone wrote: > > > >> The content I need will always fall beneath a row of pound signs, and there > >> is content above that row I don't want, like this: > >> > >> bunch of rows I don't need here > >> ############################### <--- the top of stuff needed > >> row1 > > > > > >If you want the '#' line in the output > > cat YourFile | sed -n -e '/#####/,$p' > > > >If you don't, then > > cat YourFile | sed -e '1,/#####/d' ... http://en.wikipedia.org/wiki/Cat_(Unix)#Useless_use_of_cat :-) matthias -- Matthias Apitz t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211 e - w http://www.unixarea.de/ Solidarity with the zionistic pirates of Israel? Not in my name! ¿Solidaridad con los piratas sionistas de Israel? ¡No en mi nombre!