simcon Posted November 9, 2003 Report Share Posted November 9, 2003 I've made a script to lowercase all filenames within the current folder. I've tested it and used it. It will prompt the user if it attempts to overwrite an existing file. Place this function into your ~/.bashrc file for it to be always available:- tolower () { echo "Convert all filenames within this folder to lowercase? [yes|no]"; read yn; if test "$yn" = yes; then for file in *; do mv -v -i $file $(echo $file | tr '[A-Z]' '[a-z]'); done; fi } Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.