On Tue, Apr 30, 2002 at 12:09:32AM -0700, Vineet Kumar wrote: > * Brenda J. Butler ([EMAIL PROTECTED]) [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 Thanks. -- [EMAIL PROTECTED] Welcome to the GNU age! http://www.gnu.org -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]