Skip to content

Instantly share code, notes, and snippets.

@tossmilestone
Created November 6, 2018 07:41
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 tossmilestone/06875a4ad6346ed7d6230897960dfe1b to your computer and use it in GitHub Desktop.
Save tossmilestone/06875a4ad6346ed7d6230897960dfe1b to your computer and use it in GitHub Desktop.
batch rename file
find . -type f -name '*.sh' | while read f; do mv "$f" "${f%.sh}"; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment