Created
September 20, 2023 17:48
-
-
Save brandondurham/635ce3f932682517e252ee8880d190f5 to your computer and use it in GitHub Desktop.
Lowercase all filenames in a directory.
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
for f in *; do mv "$f" "$f.tmp"; mv "$f.tmp" "`echo $f | tr "[:upper:]" "[:lower:]"`"; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment