Rename to lower case

To rename all jpg-files in a folder to its lower cased equivalent, you can run this little shell script:

$> for i in folderpath/*.jpg; do mv -v $i `echo $i | tr '[:upper:]' '[:lower:]'`; done

The -v param of mv will only give you a list of renamed files.

Leave a Reply

Your email address will not be published. Required fields are marked *


This site uses Akismet to reduce spam. Learn how your comment data is processed.