Created
May 18, 2012 21:55
-
-
Save jefftriplett/2727798 to your computer and use it in GitHub Desktop.
rename every file in a folder to lowercase
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # file this under things I should no but have to look up every f!@#$ time... | |
| # via: http://stackoverflow.com/questions/7787029/how-do-i-rename-all-files-to-lowercase | |
| for f in *; do mv "$f" "`echo $f | tr "[:upper:]" "[:lower:]"`"; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment