cat file|grep word|??? display 5lines before and after the grep

2000-11-16 Thread Eric Clover
hello, i have a need for something that will cat a large file, grep it for a word and have the ability to pull the 5 lines before and after (more like 3 lines before and 8 lines after) the grep has found the word and display the results. example: cat file|grep 5|??? 2 file 1 2 3 4 5 6 7 8 9 10

RE: cat file|grep word|??? display 5lines before and after the grep

2000-11-16 Thread Stephen_Reilly
grep -n5 ^9 filename steve -Original Message- From: Eric Clover [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 16, 2000 1:11 PM To: redhat Subject: cat file|grep word|??? display 5lines before and after the grep hello, i have a need for something that will cat a large file, grep

RE: cat file|grep word|??? display 5lines before and after the grep

2000-11-16 Thread Stephen_Reilly
well you can leave out the n, grep -5 ^9 filename steve -Original Message- From: Eric Clover [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 16, 2000 1:11 PM To: redhat Subject: cat file|grep word|??? display 5lines before and after the grep hello, i have a need for something

Re: cat file|grep word|??? display 5lines before and after the grep

2000-11-16 Thread Thomas Ribbrock
On Thu, Nov 16, 2000 at 07:10:57AM -0600, Eric Clover wrote: hello, i have a need for something that will cat a large file, grep it for a word and have the ability to pull the 5 lines before and after (more like 3 lines before and 8 lines after) the grep has found the word and display the

Re: cat file|grep word|??? display 5lines before and after the grep

2000-11-16 Thread Michael Butler/CanEast/IBM
redhat [EMAIL PROTECTED] cc: Subject: cat file|grep word|??? display 5lines before and after the grep hello, i have a need for something that will cat a large file, grep it for a word and have the ability to pull the 5 lines before and after (more like 3 lines before and 8 lines after) t

Re: cat file|grep word|??? display 5lines before and after the grep

2000-11-16 Thread Anthony E . Greene
On Thu, 16 Nov 2000 08:10 Eric Clover wrote: hello, i have a need for something that will cat a large file, grep it for a word and have the ability to pull the 5 lines before and after (more like 3 lines before and 8 lines after) the grep has found the word and display the results. According to