Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 18 Aug 2010 16:29:39 +0200
From:      Matthias Apitz <guru@unixarea.de>
To:        "Jack L. Stone" <jacks@sage-american.com>
Cc:        "A. Wright" <andrew@qemg.org>, "freebsd-questions@freebsd.org" <freebsd-questions@freebsd.org>
Subject:   Re: Extracting a variable listing
Message-ID:  <20100818142939.GA5129@current.Sisis.de>
In-Reply-To: <3.0.1.32.20100818092237.00ecef30@sage-american.com>
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>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <guru@unixarea.de> - 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!



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