Date: Sat, 9 Mar 2002 14:12:13 +1100 From: Edwin Groothuis <edwin@mavetju.org> To: Peter Leftwich <Hostmaster@Video2Video.Com> Cc: FreeBSD Questions <FreeBSD-Questions@FreeBSD.Org> Subject: Re: find /etc -name conf -print Message-ID: <20020309141213.D26790@k7.mavetju.org> In-Reply-To: <20020308220350.O68770-100000@earl-grey.cloud9.net>; from Hostmaster@Video2Video.Com on Fri, Mar 08, 2002 at 10:04:30PM -0500 References: <20020308220350.O68770-100000@earl-grey.cloud9.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Mar 08, 2002 at 10:04:30PM -0500, Peter Leftwich wrote:
> Why does this command fail to return any *.conf files?
This is a tricky one:
-name pattern
True if the last component of the pathname being examined matches
pattern. Special shell pattern matching characters (``['',
The last component of the pathname, not the filename.
"find /etc -name *.conf -print" will work if you don't have any
files or just one file in your current directory which end with
.conf.
"find /etc -name '*.conf' -print" will work always.
The difference between *.conf and '*.conf' is that *.conf will be
expanded by your shell (if possible), while '*.conf' will be passed
on as *.conf.
Edwin. Dutchman, proud of it.
--
Edwin Groothuis | Personal website: http://www.MavEtJu.org
edwin@mavetju.org | Interested in MUDs? Visit Fatal Dimensions:
------------------+ http://www.FatalDimensions.org/
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020309141213.D26790>
