[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 interpretation of the dollar sign you have
to use *single* quotes.

                grep '^dog$' /usr/share/dict/words

*does* work.  (Try it!)

                        cheers,

                                Rolf Turner
                                [EMAIL PROTECTED]

______________________________________________
[email protected] 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.

Reply via email to