Appending "Bible as Markdown" Text Hierarchy with "ESV"

Get help. Get answers. Let others lend you a hand.

Moderator: Mr_Noodle

Here my situation: I need to append 30k+ Markdown Files with "(ESV)"

A friend of mine exported the entire Bible in Markdown for use in Obsidian. Each verse is a separate text file, and they are all named by the verse and organized by book and chapter.

What I need to do is append the translation initials at the end of each verse. For every single file!

So the file named Genesis 1.1.md with the contents:
In the beginning, God created the heavens and the earth.

Would become:
In the beginning, God created the heavens and the earth. (ESV)

I assume I would need to use match contents property, but how do I add (ESV) after whatever text happens to be inside the Markdown file?

From there I assume the Run Rules on Subfolders would be all I need?

Would love to know what rule to use to append text to end end of the text inside a Markdown file!

Thanks so much
bodiequirk
 
Posts: 2
Joined: Sat Apr 16, 2016 3:10 pm

Hazel does not have actions to modify the contents of files. You will need to write a script to handle that part for you.
Mr_Noodle
Site Admin
 
Posts: 11236
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City


Return to Support

cron