Skip to content

Bulk change file extensions

Why

During a migration of dokuwiki pages to mkdocs, I had to rename a boat load of files

How

for f in *.txt; do mv -- "$f" "${f%.txt}.md"; done

Want to make this site better? Open a PR or help fund hosting costs