Darragh ORiordan

  • About
  • Articles
  • Projects
  • Hire

Stay up to date

Subscribe to the newsletter to stay up to date with articles, news and much more!

Read the Privacy Policy.

Socials & Contact

  • Follow on Twitter
  • Follow on GitHub
  • Follow on LinkedIn
  • mailto:darragh.oriordan(AT)gmail.com

Sitemap

AboutArticlesProjectsHire

© 2025 Darragh ORiordan. All rights reserved.

Recursively rename or change the suffix on MacOS

  • #tips
  • #tools
Photo by Adi Goldstein on UnsplashAugust 17, 2023

Here is how to recursively rename a bunch of files on mac

First it finds all the files with the .md extension and then renames them to .mdx while substituting the filename found in the glob.

find ./ -type f -name "*.md" -exec sh -c 'mv "$0" "${0%.md}.mdx"' {} \;

Hey! Are you a developer?

🚀 Set Up Your Dev Environment in Minutes, Not Hours!

Tired of spending hours setting up a new development machine? I used to be, too—until I automated the entire process!

Now, I just run a single script, grab a coffee, and let my setup take care of itself.

Save 30+ hours configuring a new Mac or Windows (WSL) development environment.
Ensure consistency across all your machines.
Eliminate tedious setup and get coding faster!
Get Instant Access →