Computing.Net > Forums > Unix > searching with awk

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.

searching with awk

Reply to Message Icon

Name: Carlos Picardal
Date: March 16, 2004 at 10:29:24 Pacific
OS: AIX 5.0
CPU/Ram: ?
Comment:

Is there a way to search a pattern and print out the pattern with the next 10 or 20 lines below the pattern.

Is it possible to have two awk scripts in one script.



Sponsored Link
Ads by Google

Response Number 1
Name: aigles
Date: March 16, 2004 at 13:43:56 Pacific
Reply:

Use -C option of grep command

If your grep version doesn't support the -C options, look at the thread contextual GREP in uni>/A>

Jean-Pierre.


0
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: searching with awk

please help me with awk, please www.computing.net/answers/unix/please-help-me-with-awk-please/3813.html

find the number of line with awk. www.computing.net/answers/unix/find-the-number-of-line-with-awk/4554.html

Help with AWK to extract text block www.computing.net/answers/unix/help-with-awk-to-extract-text-block/7987.html