On Wed, Apr 27, 2011 at 02:19:55PM -0600, Stuart Jansen wrote: > > 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"
I stand corrected. Thanks. -- Andrew McNabb http://www.mcnabbs.org/andrew/ PGP Fingerprint: 8A17 B57C 6879 1863 DE55 8012 AB4D 6098 8826 6868 /* PLUG: http://plug.org, #utah on irc.freenode.net Unsubscribe: http://plug.org/mailman/options/plug Don't fear the penguin. */
