On Fri, Sep 20, 2002 at 09:05:10AM +1000, Duncan Anker wrote: > > > > find foo -type f | grep -i '\.jpg$' | xargs -J % mv % bar > > > > My preferred method also. But ... I can never get that to work if there > are spaces (or other illegal characters) in the file names. > > And no, I don't usually put spaces in my filenames, but I use this quite > frequently behind the scenes on Mac OS X.
FYI, find and xargs can work with weird filenames (as long as they don't contain a \0) with these kind of options: find . -print0 | xargs -0 command (although i don't know if OSX has these :) -tim To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message