Skip to content

Instantly share code, notes, and snippets.

@craigvantonder
Created November 8, 2018 07:26
Show Gist options
  • Save craigvantonder/10233a933da0eb30193dfe3bb878c663 to your computer and use it in GitHub Desktop.
Save craigvantonder/10233a933da0eb30193dfe3bb878c663 to your computer and use it in GitHub Desktop.
Change the extension of files recursively
find /path/to -depth -name "*.jpeg" -exec sh -c 'mv "$1" "${1%.jpeg}.jpg"' _ {} \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment