From owner-freebsd-questions@FreeBSD.ORG Wed Aug 5 02:54:28 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D8301106564A for ; Wed, 5 Aug 2009 02:54:28 +0000 (UTC) (envelope-from mike@urgle.com) Received: from lon1-post-2.mail.demon.net (lon1-post-2.mail.demon.net [195.173.77.149]) by mx1.freebsd.org (Postfix) with ESMTP id A097F8FC17 for ; Wed, 5 Aug 2009 02:54:28 +0000 (UTC) (envelope-from mike@urgle.com) Received: from cheddar.urgle.com ([80.177.40.53]) by lon1-post-2.mail.demon.net with esmtp (Exim 4.69) id 1MYWPq-0006hV-bw; Wed, 05 Aug 2009 02:39:46 +0000 Received: from mike by cheddar.urgle.com with local (Exim 4.69 (FreeBSD)) (envelope-from ) id 1MYWPq-0002c1-3h; Wed, 05 Aug 2009 02:39:46 +0000 Date: Wed, 5 Aug 2009 03:39:46 +0100 From: Mike Bristow To: Gary Gatten Message-ID: <20090805023946.GA9852@cheddar.urgle.com> References: <70C0964126D66F458E688618E1CD008A0793F2EF@WADPEXV0.waddell.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <70C0964126D66F458E688618E1CD008A0793F2EF@WADPEXV0.waddell.com> User-Agent: Mutt/1.5.20 (2009-06-14) Cc: jhall@socket.net, freebsd-questions@freebsd.org Subject: Re: find question X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Aug 2009 02:54:29 -0000 On Tue, Aug 04, 2009 at 08:49:17PM -0500, Gary Gatten wrote: > Ah yes, I do remember now. Plus, for once the syntax is almost self explanatory. So, did the OPs question get answered? Yes. But to be clear, one of the lines in the input file is blank, which means that find is run as find -type f which is incorrect; it will be treated as "run find with the -t, -y, -p, and -e flags in the directory f". (find's syntax is: find [ optional flags ] [ required places to search ] [ optional rules to filter out the things you dont want] By having the places-to-search variable be blank, the shell doesn't pass anythin to find, causing the optional rules to be interpreted as the optional flags - and the syntax isn't correct. -- :wq