Skip to content

Instantly share code, notes, and snippets.

@ttscoff
Last active December 14, 2015 22:19
Show Gist options
  • Save ttscoff/5157834 to your computer and use it in GitHub Desktop.
Save ttscoff/5157834 to your computer and use it in GitHub Desktop.
# batch change extension (fix from Lri, again)
chgext() {
for file in *.$1 ; do mv "$file" "${file%.$1}.$2" ; done
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment