Todd Walton wrote:

On 4/17/07, Ralph Shumaker <[EMAIL PROTECTED]> wrote:

That's cool, but in a four stage pipe it would be necessary to include
that switch four times.  Still, it's something to consider.  Thanks.


How about:

grep -C 4 /tmp/file `grep aba /tmp/file | grep bcb | grep cdc | grep ded`


This yielded something really strange (in bash). It found the right line, I'd say. But it took each word of that line and gave me this:
grep: word1: no such file or directory
grep: word2: no such file or directory
grep: word3,: no such file or directory
.
.
.
grep: word29.: no such file or directory

The words were the right words. But each word was part of an error message. And the whole point of getting context? well, no context was shown.

(I made no typo since I used cut and paste.)


--
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list

Reply via email to