Re: Extracting a variable listing
- From: "A. Wright" <andrew@xxxxxxxx>
- Date: Wed, 18 Aug 2010 10:53:47 -0300 (ADT)
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.
_______________________________________________
freebsd-questions@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@xxxxxxxxxxx"
- Follow-Ups:
- Re: Extracting a variable listing
- From: Jack L. Stone
- Re: Extracting a variable listing
- References:
- Extracting a variable listing
- From: Jack L. Stone
- Extracting a variable listing
- Prev by Date: Extracting a variable listing
- Next by Date: fix bad directory on FAT32 usb disk
- Previous by thread: Extracting a variable listing
- Next by thread: Re: Extracting a variable listing
- Index(es):
Relevant Pages
|