>> Unfortunately: >> >> amcnabb@sage:~ :) echo "sit" |egrep "s?he|it" >> sit > >Perhaps, but: >echo "sit" | sed -r 's/.*(s?he|it).*/Matched: "\1"/;'
>Or if you're using a reasonable version of grep: >$ echo "sit" | egrep --color "s?he|it" Or, even if you don't have color: $ echo "sit" | egrep "s?he|it" -o it /* PLUG: http://plug.org, #utah on irc.freenode.net Unsubscribe: http://plug.org/mailman/options/plug Don't fear the penguin. */
