Computing.Net > Forums > Unix > getting a specific line from a 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.

getting a specific line from a file

Reply to Message Icon

Name: manjushree123
Date: February 21, 2007 at 22:31:02 Pacific
OS: HP-UNIX
CPU/Ram: P4 and 1GB
Product: HP
Comment:

i hv written a shell script which exports data to a file and i want to filter out one particular line from that file and manipulate that line further.




Sponsored Link
Ads by Google

Response Number 1
Name: thepubba1
Date: February 23, 2007 at 09:37:56 Pacific
Reply:

I would think grep is the option of choice here.


0

Response Number 2
Name: aka
Date: February 26, 2007 at 07:07:40 Pacific
Reply:


$ grep -A# -B# searchterm filename

Maybe this helps, if not, I would need more information about what exactly do you want to do.


Don“t freak out until you know the facts...Relax...!


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

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


Go to Unix Forum Home


Sponsored links

Ads by Google


Results for: getting a specific line from a file

removing specific line from file www.computing.net/answers/unix/removing-specific-line-from-file/5042.html

extract a specific line from file www.computing.net/answers/unix/extract-a-specific-line-from-file/5381.html

Get the first line from a file www.computing.net/answers/unix/get-the-first-line-from-a-file/7981.html