Hi,
You have to learn about regular expressions. Then you'll come up with something
like :
grep ^dog$ /usr/share/dict/words
Cheers,
Romain
Selon Erin Hodgess [EMAIL PROTECTED]:
Dear R People:
I want to use the grep command in UNIX/Linux to check
some words from the dictionary.
Let's
[EMAIL PROTECTED] wrote:
You have to learn about regular expressions. Then you'll come up with
something like :
grep ^dog$ /usr/share/dict/words
*You* have to learn about shell syntax. The foregoing doesn't
work; it gives an ``Illegal variable name.'' error. To protect
against the shell
On 10/08/06, Rolf Turner [EMAIL PROTECTED] wrote:
[EMAIL PROTECTED] wrote:
grep '^dog$' /usr/share/dict/words
or (simpler, in my view)
grep -w dog /usr/share/dict/words
Chris.
[[alternative HTML version deleted]]
On Thu, Aug 10, 2006 at 08:51:36AM -0300, Rolf Turner wrote:
[EMAIL PROTECTED] wrote:
You have to learn about regular expressions. Then you'll come up with
something like :
grep ^dog$ /usr/share/dict/words
*You* have to learn about shell syntax. The foregoing doesn't
work; it
Selon Rolf Turner [EMAIL PROTECTED]:
[EMAIL PROTECTED] wrote:
You have to learn about regular expressions. Then you'll come up with
something like :
grep ^dog$ /usr/share/dict/words
*You* have to learn about shell syntax. The foregoing doesn't
work; it gives an ``Illegal variable
Selon Chris wallace [EMAIL PROTECTED]:
On 10/08/06, Rolf Turner [EMAIL PROTECTED] wrote:
[EMAIL PROTECTED] 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
On 10/08/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
Selon Chris wallace [EMAIL PROTECTED]:
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
Dear R People:
I want to use the grep command in UNIX/Linux to check
some words from the dictionary.
Let's say I use:
grep dog /usr/share/dict/words
and I get back
bulldog
dog
dogged
and so on.
How could I just get back dog with the grep command please?
Thanks,
Sincerely
Erin Hodgess