Skip to content

Instantly share code, notes, and snippets.

@uuklanger
Last active January 9, 2017 19:11
Show Gist options
  • Save uuklanger/146e5f8526b324db602e64324ebc1fce to your computer and use it in GitHub Desktop.
Save uuklanger/146e5f8526b324db602e64324ebc1fce to your computer and use it in GitHub Desktop.
Rename files to be all lowercase
# Take a listing of files and renames to be lowercase. The ls -1 is the selector of which files are impacted so be careful.
for f in `ls -1`; do mv -v "$f" "`echo $f | tr '[A-Z]' '[a-z]'`"; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment