Skip to content

Instantly share code, notes, and snippets.

@iuliaL
Created January 26, 2023 17: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 iuliaL/2f7f9b76272830d1f2535930b80388f6 to your computer and use it in GitHub Desktop.
Save iuliaL/2f7f9b76272830d1f2535930b80388f6 to your computer and use it in GitHub Desktop.
Recursively rename all .txt files in the current directory to .md.
find . -iname "*.txt" -exec bash -c 'mv "$0" "${0%\.txt}.md"' {} \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment