Todd Walton wrote:

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

> 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


Oh.  I was on a Windows computer when I wrote that.  Try quoting the
back-ticked.

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


Well, that did a *little* better.  This is what I got this time:

grep -C 4 /tmp/file "`grep aba /tmp/file | grep bcb | grep cdc | grep ded`"
grep: The correct line displayed here.: No such file or directory

And still no context.   :-(


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

Reply via email to