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
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
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
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
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
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