Skip to content

Instantly share code, notes, and snippets.

@galaakk
Forked from ttscoff/a.rb
Last active December 16, 2015 09:49
Show Gist options
  • Save galaakk/5415909 to your computer and use it in GitHub Desktop.
Save galaakk/5415909 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