On Mac OS or Linux, or using the Windows Subsystem for Linux (WSL), the sed command makes an excellent workaround that allows for regular expressions.
I recommend anyone with a need to batch edit files learn some of sed. Most of us will run into use cases that go beyond anything we could reasonably expect an application, or even a plugin, to cover. sed is a great Swiss Army knife for text manipulation with tons of support online.
Originally I planned to share a command that I recently ran to delete one of my metadata categories. Decided against this:
- Running terminal commands from random people online like me is an exceptionally bad idea. You would have to learn some
sed anyhow to make sure I am not trolling you by wrecking your computer.
- Knowing even a little bit of what you’re doing with command-line tools is going to give you grand and terrible ideas for your notes, how to manage them, and how to make use of them.
- You’ll better appreciate the Obsidian team’s decision to store your notes in a common, plain text format. It’s not just about “owning” you notes but about making them available to other tools.