Computing.Net > Forums > Programming > Bash: sed/grep/awk sections of file

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Bash: sed/grep/awk sections of file

Reply to Message Icon

Name: Six
Date: February 12, 2004 at 20:11:12 Pacific
OS: Gentoo
CPU/Ram: 1.3/512
Comment:

Hi.
Sed/awk/grep, etc are scary to me.
Is it possible to search a text file (which is an address book) for $name, and output all the lines from that to, say, the next line that looks like this: ------- ??
if I'm not that lucky, can I get it to output the following 5 lines from $name?

thank you



Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


What is vfw://0 Web Services



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: Bash: sed/grep/awk sections of file

Determine length of file in Python www.computing.net/answers/programming/determine-length-of-file-in-python/11903.html

bash script using awk www.computing.net/answers/programming/bash-script-using-awk/19581.html

Count number of files in zip archive www.computing.net/answers/programming/count-number-of-files-in-zip-archive/20254.html