Skip to content

Instantly share code, notes, and snippets.

@thaoms
Last active December 20, 2015 10:08
Show Gist options
  • Save thaoms/6112862 to your computer and use it in GitHub Desktop.
Save thaoms/6112862 to your computer and use it in GitHub Desktop.
Remove spaces from all filenames in folder to underscores
for i in *.pdf; do mv "$i" "`echo $i | sed -e 's, ,_,g'`"; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment