Skip to content

Instantly share code, notes, and snippets.

@johnjohndoe
Last active August 29, 2015 14:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save johnjohndoe/dd41afee86a4bd379e07 to your computer and use it in GitHub Desktop.
Save johnjohndoe/dd41afee86a4bd379e07 to your computer and use it in GitHub Desktop.
Android shell commands

Convert file names to lowercase

$> for i in $(find . -type f -name "*[A-Z]*"); do mv "$i" "$(echo $i | tr A-Z a-z)"; done

Replace hyphen with underbar in all files

$> for i in $(find . -type f -name "*[a-z]*"); do mv "$i" "$(echo $i | tr '-' '_')"; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment