From owner-freebsd-questions@FreeBSD.ORG Fri Oct 14 19:05:08 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 1DFC516A428 for ; Fri, 14 Oct 2005 19:05:08 +0000 (GMT) (envelope-from ges+lists@wingfoot.org) Received: from wingfoot.org (caduceus.wingfoot.org [64.32.179.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id A091E43D6A for ; Fri, 14 Oct 2005 19:05:03 +0000 (GMT) (envelope-from ges+lists@wingfoot.org) Received: from localhost (localhost [127.0.0.1]) by wingfoot.org (Postfix) with ESMTP id 2B4A31F441E; Fri, 14 Oct 2005 15:05:02 -0400 (EDT) Received: from wingfoot.org ([127.0.0.1]) by localhost (wingfoot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 14327-06; Fri, 14 Oct 2005 15:04:59 -0400 (EDT) Received: from [192.168.0.3] (ool-44c47f78.dyn.optonline.net [68.196.127.120]) by wingfoot.org (Postfix) with ESMTP id 366511F441B; Fri, 14 Oct 2005 15:04:59 -0400 (EDT) Message-ID: <43500160.8050706@wingfoot.org> Date: Fri, 14 Oct 2005 15:05:04 -0400 From: Glenn Sieb User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.12) Gecko/20050923 Thunderbird/1.0.7 Mnenhy/0.6.0.104 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Drew Tomlinson , questions@freebsd.org References: <434FFEB4.90308@mykitchentable.net> In-Reply-To: <434FFEB4.90308@mykitchentable.net> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at wingfoot.org Cc: 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:05:08 -0000 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. Best, --Glenn -- "They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety." ~Benjamin Franklin, Historical Review of Pennsylvania, 1759