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

Re: Upper case



Mircea Damian <dmircea@xxxxxxxxxxxxxx> typed:
:I was wondering yesterday if there is a simple way to rename all my song
:files(mp3) from
:name with spaces.mp3   ->  Name With Spaces.mp3
:
:with something like:
:for i in *.mp3; do 
:mv -v $i (UNKNOWN_PART_TO_ME)

One way:
	mv $i ${${(C)i}:s/Mp3/mp3/}

:done

Regards,
-- 
Geoff Wing : <gcw@xxxxxxxxx>     Work URL: http://www.primenet.com.au/
Rxvt Stuff : <gcw@xxxxxxxx>      Ego URL : http://pobox.com/~gcw/
Zsh Stuff  : <gcw@xxxxxxx>       Phone   : (Australia) 0413 431 874



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