Skip to content

Instantly share code, notes, and snippets.

@mir4a
Created September 13, 2013 15:13
Show Gist options
  • Save mir4a/6552010 to your computer and use it in GitHub Desktop.
Save mir4a/6552010 to your computer and use it in GitHub Desktop.
Batch rename file extensions (bash)
for i in *.ext; do mv -- "$i" "${i%.ext}.otherext"; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment