Rename files to upper or lower case

To Rename file to upper case or lower case (* == file selector):

Convert to lower case file names

$> for f in *; do mv "$f" "`echo $f | tr "[:upper:]" "[:lower:]"`"; done

Convert to upper case

$> for f in *; do mv "$f" "`echo $f | tr "[:lower:]" "[:upper:]"`"; done

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.