Skip to content

Instantly share code, notes, and snippets.

@joellobo
Last active November 10, 2016 23:44
Show Gist options
  • Save joellobo/79aa8d78f48239d5d689b81ef57b793d to your computer and use it in GitHub Desktop.
Save joellobo/79aa8d78f48239d5d689b81ef57b793d to your computer and use it in GitHub Desktop.
rename 'y/A-Z/a-z/' *
for file in *; do mv "$file" `echo $file | tr ' ' '-'` ; done
ls | while read upName; do loName=`echo "${upName}" | tr '[:upper:]' '[:lower:]'`; mv "$upName" "$loName"; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment