On 17 Apr 2006, Benno <[EMAIL PROTECTED]> wrote:

> If you are using zsh, it has a neat feature where you can glob down multiple
> directories. E.g:
> 
> mv /photos/**/*.jpg /newphotos
> 
> Will match all .jpg files under photos. But you will end up with all those 
> jpgs
> in the one directory which is probably not what you want. Another problem is 
> that
> you can only have so many arguments on the command line, and if your photo 
> collection
> is large that won't work.

A related neat zsh trick is 

  for i in *.JPG; do mv -v $i ${i:l}; done

to squash everything to lowercase, which can be nice when they're coming
from a flash card onto Unix.

-- 
Martin
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Reply via email to