Skip to content

Instantly share code, notes, and snippets.

@17twenty
Created June 13, 2014 10:00
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 17twenty/894f1e5c7275d3638a75 to your computer and use it in GitHub Desktop.
Save 17twenty/894f1e5c7275d3638a75 to your computer and use it in GitHub Desktop.
Quick Suffix rename script
# Replace the .sh and .txt in the next line with the current and future file suffixes
for i in $(find . -iname *\.sh -print;) ; do mv "$i" "$(dirname $i)/$(basename -s .sh $i).txt"; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment