Skip to content

Instantly share code, notes, and snippets.

@samrobbins85
Created May 6, 2020 09:36
Show Gist options
  • Save samrobbins85/db4e8508ae81bcdcc0f03dbcedb4c937 to your computer and use it in GitHub Desktop.
Save samrobbins85/db4e8508ae81bcdcc0f03dbcedb4c937 to your computer and use it in GitHub Desktop.
Replace all spaces with underscores in images
find . -type f -name "* *.png" -exec bash -c 'mv "$0" "${0// /_}"' {} \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment