Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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