[KLUG Members] Re: grep, egrep, fgrep
members@kalamazoolinux.org
members@kalamazoolinux.org
Thu, 6 May 2004 10:32:12 -0400
On Thu, May 06, 2004 at 10:11:36AM -0400, Robert G. Brown was only escaped
alone to tell thee:
> > Should I still be escaping the period somehow anyway?
If you want to eliminate false positives, which may be important,
depending on what you're doing with the info so gathered.
> IMO, yes. I do it with success: ls -l |grep \.s
ls -l | grep \\.s
Or the shell throws away your single backslash. Or use '\.s'.
--
You can fill my head with Gummi Bears,
but I won't talk! -- Tom Servo, K13.