Date: Sun, 21 Jul 2002 15:14:22 +1200 From: Jonathan Chen <jonc@chen.org.nz> To: sagacious <sagacious@unixhideout.com> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: shell guru needed. Message-ID: <20020721031422.GB62549@grimoire.chen.org.nz> In-Reply-To: <000001c2305d$ec6d40f0$0a01a8c0@athlon> References: <000001c2305d$ec6d40f0$0a01a8c0@athlon>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <jonc@chen.org.nz> ---------------------------------------------------------------------- "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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020721031422.GB62549>