Skip to content

Instantly share code, notes, and snippets.

@Buravo46
Created May 19, 2016 14:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Buravo46/07e7b3f1439fca57511ad936286b71ba to your computer and use it in GitHub Desktop.
Save Buravo46/07e7b3f1439fca57511ad936286b71ba to your computer and use it in GitHub Desktop.
shell
BEFORE_EXTENSION="text"
AFTER_EXTENSION=""
for fname in *.$BEFORE_EXTENSION; do
mv $fname ${fname%.$BEFORE_EXTENSION}$AFTER_EXTENSION;
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment