On 10/08/06, francoisromain@free.fr <francoisromain@free.fr> wrote:
>
> Selon Chris wallace <crassshed@gmail.com>:
>
> >                    grep -w dog /usr/share/dict/words
>
> Well, for the record it's does not work with my settings.
> Maybe *Mr Turner* can give you a lesson as well. Sorry I'm just in the
> mood for
> a joke ...
>
> Romain
>
> $ grep -w dog /usr/share/dict/words
> bird-dog
> bull-dog
> cat-and-dog
> dog
> dog-banner
>

Ah - the original example didn't include hyphenated words (and nor does my
/usr/share/dict/words).  To match whole lines try grep -x.  Does that do it?

C.

	[[alternative HTML version deleted]]

