Skip to content

Instantly share code, notes, and snippets.

@shoaibi
Created January 20, 2017 11:48
Show Gist options
  • Select an option

  • Save shoaibi/1b9b637247fd71c541effb837b3cd5e6 to your computer and use it in GitHub Desktop.

Select an option

Save shoaibi/1b9b637247fd71c541effb837b3cd5e6 to your computer and use it in GitHub Desktop.
find . -depth -name '* *' \
-execdir bash -c 'mv "$1" "${1// /_}"' _ {} \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment