[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: stupid script tricks - slightly OT

On Tue, Apr 30, 2002 at 12:09:32AM -0700, Vineet Kumar wrote:
> * Brenda J. Butler (bjb@achilles.net) [020429 23:44]:
> > Also, personally I like to force the period to be a period and
> > not a wildcard for "any character", just in case there was a file
> > named myfilewhichisjpg that I didn't want to match.  I also
> > usually put the -print explicitly.
> These are shell patterns, not regular expressions. The . is not special;
> it is just a dot. find also supports a -regex expression, which does
> match regexes, in which case the leading '*' is nonstandard at best --
> my guess is that since it isn't following another token as a quantifier
> it would match only a literal '*', which is probably not what you want.

Aha, you are right.  I was confusing what I have to do with
the args to grep with what I have to do with the arg for find -name.
eg, find . -name xxx -exec grep heres\.a\.literal\.dot {} \; -print

Welcome to the GNU age!   http://www.gnu.org

To UNSUBSCRIBE, email to debian-user-request@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

Reply to: