Re: script to convert filename to lowercase
"Darryl Röthering" <drothering@hotmail.com> wrote:
>Can one of you gurus quickly help me with a script? I have a directory with
>several thousand files named inconsistently with a mix of uppercase and
>lowercase. I need to rationalize these to be named with all lowercase. I
>know you guys will have a dozen ways to do this.
1) apt-get install mmv
mmv \* \#l1
2) apt-get install perl
rename 'tr/A-Z/a-z/' *
3) apt-get install zsh
zsh -c 'for x in *; do mv "$x" "${x:l}"; done'
--
Colin Watson [cjw44@flatline.org.uk]
Reply to: