Skip to content

Instantly share code, notes, and snippets.

@4z3
Created October 16, 2014 17:30
Show Gist options
  • Save 4z3/e2c101ef59e916b3b05e to your computer and use it in GitHub Desktop.
Save 4z3/e2c101ef59e916b3b05e to your computer and use it in GitHub Desktop.
find -mindepth 1 -maxdepth 1 -type f | while read f1; do f2=$(echo $f1 | tr A-Z a-z); if test "$f1" != "$f2"; then echo mv "$f1" "$f2"; fi; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment