From owner-freebsd-questions Sat Jul 20 20:14:27 2002 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 4E6CF37B400 for ; Sat, 20 Jul 2002 20:14:25 -0700 (PDT) Received: from chen.org.nz (chen.org.nz [210.54.19.51]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5EFE743E3B for ; Sat, 20 Jul 2002 20:14:24 -0700 (PDT) (envelope-from jonc@chen.org.nz) Received: from grimoire.chen.org.nz (localhost [127.0.0.1]) by chen.org.nz (8.12.5/8.12.5) with ESMTP id g6L3EM7i062633; Sun, 21 Jul 2002 15:14:22 +1200 (NZST) (envelope-from jonc@grimoire.chen.org.nz) Received: (from jonc@localhost) by grimoire.chen.org.nz (8.12.5/8.12.5/Submit) id g6L3EMmA062632; Sun, 21 Jul 2002 15:14:22 +1200 (NZST) Date: Sun, 21 Jul 2002 15:14:22 +1200 From: Jonathan Chen To: sagacious Cc: freebsd-questions@FreeBSD.ORG Subject: Re: shell guru needed. Message-ID: <20020721031422.GB62549@grimoire.chen.org.nz> References: <000001c2305d$ec6d40f0$0a01a8c0@athlon> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <000001c2305d$ec6d40f0$0a01a8c0@athlon> User-Agent: Mutt/1.4i 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 Sat, Jul 20, 2002 at 10:25:46PM -0400, sagacious wrote: > I need to use find, or a similar command to search a massive amount of > directories recursively, and when it finds a certain file extension I > want it to move the file to another location. Thanks. How about: # find /path/to/directory -name '*.myext' -exec mv {} /somewhere \; -- Jonathan Chen ---------------------------------------------------------------------- "I don't want to achive immortality through my works.. I want to achieve it through not dying" - Woody Allen To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message