Today I Learned

A Hashrocket project

Upcase/Downcase variable in zsh

If you want to, for example, rename downcase a list of files, you can use the handy zsh shortcuts :l and :u:

for file in *.jpg; do mv $file $file:l; done

upcase is similar:

for file in *.jpg; do mv $file $file:u; done