From owner-freebsd-questions@FreeBSD.ORG Fri Oct 14 19:15:46 2005 Return-Path: X-Original-To: questions@freebsd.org Delivered-To: freebsd-questions@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3933416A41F for ; Fri, 14 Oct 2005 19:15:46 +0000 (GMT) (envelope-from drew@mykitchentable.net) Received: from relay01.roc.ny.frontiernet.net (relay01.roc.ny.frontiernet.net [66.133.182.164]) by mx1.FreeBSD.org (Postfix) with ESMTP id A698D43D6B for ; Fri, 14 Oct 2005 19:15:44 +0000 (GMT) (envelope-from drew@mykitchentable.net) Received: from filter09.roc.ny.frontiernet.net (filter09.roc.ny.frontiernet.net [66.133.183.76]) by relay01.roc.ny.frontiernet.net (Postfix) with ESMTP id D827D3642FC; Fri, 14 Oct 2005 19:15:43 +0000 (UTC) Received: from relay01.roc.ny.frontiernet.net ([66.133.182.164]) by filter09.roc.ny.frontiernet.net (filter09.roc.ny.frontiernet.net [66.133.183.76]) (amavisd-new, port 10024) with LMTP id 07525-05-32; Fri, 14 Oct 2005 19:15:43 +0000 (UTC) Received: from blacklamb.mykitchentable.net (67-51-164-214.dsl1.elk.ca.frontiernet.net [67.51.164.214]) by relay01.roc.ny.frontiernet.net (Postfix) with ESMTP id E9C873645E1; Fri, 14 Oct 2005 19:15:11 +0000 (UTC) Received: from [165.107.42.123] (unknown [165.107.42.123]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by blacklamb.mykitchentable.net (Postfix) with ESMTP id 07C6A1549FC; Fri, 14 Oct 2005 12:15:03 -0700 (PDT) Message-ID: <4350033E.7070703@mykitchentable.net> Date: Fri, 14 Oct 2005 12:13:02 -0700 From: Drew Tomlinson User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Glenn Sieb , cswiger@mac.com References: <434FFEB4.90308@mykitchentable.net> <43500160.8050706@wingfoot.org> In-Reply-To: <43500160.8050706@wingfoot.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new-2.3.2 (20050629) at filter09.roc.ny.frontiernet.net Cc: questions@freebsd.org Subject: Re: Help With Find Syntax 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: Fri, 14 Oct 2005 19:15:46 -0000 On 10/14/2005 12:05 PM Glenn Sieb wrote: >Drew Tomlinson said the following on 10/14/2005 2:53 PM: > > > >>I want to recursively search a directory and return files that end in >>".jpg" or ".gif" but I can't seem to get the find syntax right. My >>basic command lines are: >> >>find /multimedia/Pictures -iname "*.gif" -print >> >>OR >> >>find /multimedia/Pictures -iname "*.jpg" -print >> >> > > >find /multimedia/Pictures \( -iname '*.gif' -or -iname '*.jpg' \) -print > >That should do it for you. > > OK, duh. I get it now. Thanks for pointing me in the right direction! Thanks, Drew -- Visit The Alchemist's Warehouse Magic Tricks, DVDs, Videos, Books, & More! http://www.alchemistswarehouse.com