Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save Phinome/6e95d334f2ac831057d722317c5a5f07 to your computer and use it in GitHub Desktop.
Save Phinome/6e95d334f2ac831057d722317c5a5f07 to your computer and use it in GitHub Desktop.
recursively-change-file-extensions-in-bash
find . -name "*.t1" -exec bash -c 'mv "$1" "${1%.t1}".t2' - '{}' \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment