Rename the extension of multiple files with shell script

Emmanuel Gautier / October 30, 2021

Shell script renaming recursively multiples files extension from the current directory. Here the change is for markdown, but you can change it easily to any other file extension.

for x in **/*.md; do mv "$x" "${}.mdx"; done

for x in **/*.js; do mv "$x" "${}.ts"; done