On Tue, April 17, 2007 2:53 pm, 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` > > -todd >
I haven't been following this too closely, but sometimes grep -v can be helpful to me: grep aba /tmp/tmpfile | grep -v aba.*aba If you want lines with only one aba in them. -- Lan Barnes SCM Analyst Linux Guy Tcl/Tk Enthusiast Biodiesel Brewer -- [email protected] http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list
