Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: capitalizing file names
- X-seq: zsh-users 11455
- From: Artur Penttinen <arto-p@xxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: capitalizing file names
- Date: Thu, 26 Apr 2007 09:57:14 +0400
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- Reply-to: artur@xxxxxxxxxxx
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