Re: Find a string and print next 10 lines
- From: "Chris F.A. Johnson" <cfajohnson@xxxxxxxxx>
- Date: Wed, 13 Jun 2012 17:04:23 -0400
On 2012-06-13, contracer wrote:
Hi,
I´m looking for an awk command to find a string in a file and print
next 10 lines.
grep -A 10 STRING FILE ...
--
Chris F.A. Johnson, author <http://shell.cfajohnson.com/>
===================================================================
Shell Scripting Recipes: A Problem-Solution Approach (2005, Apress)
Pro Bash Programming: Scripting the GNU/Linux Shell (2009, Apress)
.
- Follow-Ups:
- Re: Find a string and print next 10 lines
- From: Bill Marcum
- Re: Find a string and print next 10 lines
- From: Kenny McCormack
- Re: Find a string and print next 10 lines
- References:
- Find a string and print next 10 lines
- From: contracer
- Find a string and print next 10 lines
- Prev by Date: Re: Find a string and print next 10 lines
- Next by Date: Re: Find a string and print next 10 lines
- Previous by thread: Re: Find a string and print next 10 lines
- Next by thread: Re: Find a string and print next 10 lines
- Index(es):
Relevant Pages
|