Date: Wed, 18 Aug 2010 09:22:37 -0500 From: "Jack L. Stone" <jacks@sage-american.com> To: "A. Wright" <andrew@qemg.org> Cc: "freebsd-questions@freebsd.org" <freebsd-questions@freebsd.org> Subject: Re: Extracting a variable listing Message-ID: <3.0.1.32.20100818092237.00ecef30@sage-american.com> In-Reply-To: <alpine.BSF.2.00.1008181049170.1915@qemg.org> References: <3.0.1.32.20100818084231.00ecef30@sage-american.com> <3.0.1.32.20100818084231.00ecef30@sage-american.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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' > >The above assumes that you will have at least 5 '#' chars on >your divider line, and never before in the file. Increase the >number '#' symbols if the above example is strictly literal. >Note the -n in the first line. > >A. > Worked like a charm, Andrew! Just what I needed! Jack (^_^) Happy trails, Jack L. Stone System Admin Sage-american
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3.0.1.32.20100818092237.00ecef30>