From owner-freebsd-questions Fri Mar 8 19:12:25 2002 Delivered-To: freebsd-questions@freebsd.org Received: from topaz.mdcc.cx (topaz.mdcc.cx [212.204.230.141]) by hub.freebsd.org (Postfix) with ESMTP id 81E4937B402 for ; Fri, 8 Mar 2002 19:12:21 -0800 (PST) Received: from k7.mavetju.org (topaz.mdcc.cx [212.204.230.141]) by topaz.mdcc.cx (Postfix) with ESMTP id CC5E52B671; Sat, 9 Mar 2002 04:12:18 +0100 (CET) Received: by k7.mavetju.org (Postfix, from userid 1001) id 0205F96; Sat, 9 Mar 2002 14:12:13 +1100 (EST) Date: Sat, 9 Mar 2002 14:12:13 +1100 From: Edwin Groothuis To: Peter Leftwich Cc: FreeBSD Questions Subject: Re: find /etc -name conf -print Message-ID: <20020309141213.D26790@k7.mavetju.org> Mail-Followup-To: Edwin Groothuis , Peter Leftwich , FreeBSD Questions References: <20020308220350.O68770-100000@earl-grey.cloud9.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <20020308220350.O68770-100000@earl-grey.cloud9.net>; from Hostmaster@Video2Video.Com on Fri, Mar 08, 2002 at 10:04:30PM -0500 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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