Re: [R] OT UNIX grep question

From: <francoisromain_at_free.fr>
Date: Fri 11 Aug 2006 - 06:32:05 EST

Selon Chris wallace <crassshed@gmail.com>:

> On 10/08/06, Rolf Turner <rolf@erdos.math.unb.ca> wrote:
> >
> > francoisromain@free.fr wrote:
> >
> > grep '^dog$' /usr/share/dict/words
> >
> >
> or (simpler, in my view)
>
> grep -w dog /usr/share/dict/words
>
> Chris.
>

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
....
water-dog
wolf-dog
yellow-dog



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Fri Aug 11 06:36:04 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Fri 11 Aug 2006 - 08:21:44 EST.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.