Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: capitalizing file names



26.04.07, 09:16, Alexy Khrabrov <deliverable@xxxxxxxxx>:

> I need to rename a series of files on Mac OS X, to reflect case
> difference.  I have multi-word file names such as
> alexy_070411_1971.dng
> -- which must become
> Alexy_070411_1971.DNG
> -- that is, I need to capitalize the filename and the extension.  Lest
> of writing a perl/ruby script, is there a zsh way?

  autoload zmv
  zmv '(*).(*)' '${(C)1}.${2:u}'
  
-- 
wbw, artur



Messages sorted by: Reverse Date, Date, Thread, Author