Skip to content

Instantly share code, notes, and snippets.

@ghandic
Created February 27, 2019 01:57
Show Gist options
  • Save ghandic/cb00d6464ef403a1c72b52cfec51e4b5 to your computer and use it in GitHub Desktop.
Save ghandic/cb00d6464ef403a1c72b52cfec51e4b5 to your computer and use it in GitHub Desktop.
Recursive rename of file extension
find . -regex '.*.py' -type f | sed "s/\.py$//" | xargs -I% mv -iv %.py %.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment