Skip to content

Instantly share code, notes, and snippets.

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 sunny-mittal/b666aa058a5c7a8961a5ffadd4b2d4f1 to your computer and use it in GitHub Desktop.
Save sunny-mittal/b666aa058a5c7a8961a5ffadd4b2d4f1 to your computer and use it in GitHub Desktop.
Terminal Script: Recursively rename or change file extensions (this example, changing extension from .html to .php)
find . -name "*.html" | while read i; do mv "$i" "${i%.html}.php"; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment