Skip to content

Instantly share code, notes, and snippets.

@gwennguihal
Created March 14, 2014 11:25
Show Gist options
  • Save gwennguihal/9545994 to your computer and use it in GitHub Desktop.
Save gwennguihal/9545994 to your computer and use it in GitHub Desktop.
Replace - by _ in filename
for f in *.png; do mv "$f" "${f//-/_}"; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment