Skip to content

Instantly share code, notes, and snippets.

@homam
Created June 23, 2014 13:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save homam/d5a473ec9232e4e1f38b to your computer and use it in GitHub Desktop.
Save homam/d5a473ec9232e4e1f38b to your computer and use it in GitHub Desktop.
for i in ./*.jpg; do mv "$i" $(echo "$i" | sed 's/\.jpg\.jpg/\.jpg/'); done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment