Re: [R] OT UNIX grep question

2006-08-10 Thread francoisromain
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

Re: [R] OT UNIX grep question

2006-08-10 Thread Rolf Turner
[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

Re: [R] OT UNIX grep question

2006-08-10 Thread Chris wallace
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]]

Re: [R] OT UNIX grep question

2006-08-10 Thread Jan T. Kim
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

Re: [R] OT UNIX grep question

2006-08-10 Thread francoisromain
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

Re: [R] OT UNIX grep question

2006-08-10 Thread francoisromain
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

Re: [R] OT UNIX grep question

2006-08-10 Thread Chris wallace
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

[R] OT UNIX grep question

2006-08-09 Thread Erin Hodgess
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