Skip to content

Instantly share code, notes, and snippets.

@walm
Created October 6, 2011 12:54
Show Gist options
  • Save walm/1267322 to your computer and use it in GitHub Desktop.
Save walm/1267322 to your computer and use it in GitHub Desktop.
Replace *.jpg.jpg to *.jpg in zsh
for file in `ls *.jpg.jpg`; do mv $file $file:gs/.jpg.jpg/.jpg/; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment