I'm pretty new to emacs, so I'm still learning all the functions.
I'm trying to remove certain metadata from each line of several large .txt files (Bible translations) and was wondering if if there was a way to search for and delete numerals above a certain value or to delete a specific column (the 4th) separated by TAB characters.
BOOK <TAB> CHAPTER# <TAB> VERSE# <TAB> VERSE-ID# <TAB> TEXT
The 4th field is a universal verse number starting at "10" and increases sequentially by 10s, so it becomes quite large - far larger than any other numeral in the file, which would otherwise be less than 300.
An example of what I'd like to do would be changing this:
PSALMS 150 5 164000 Praise him upon the loud cymbals: praise him upon the high sounding cymbals. PSALMS 150 6 164010 Let every thing that hath breath praise the LORD. Praise ye the LORD.
PSALMS 150 5 Praise him upon the loud cymbals: praise him upon the high sounding cymbals. PSALMS 150 6 Let every thing that hath breath praise the LORD. Praise ye the LORD.
The files also are divided into books by org-mode headings:
* THE NEW TESTAMENT ** The GOSPEL According to Matthew MATTHEW 1 1 231460 The book of the generation of Jesus Christ, the son of David, the son of Abraham.
I suppose a delete-by-column function would have to be iterated, but that's not an issue for me as I can easily whip up a macro. Messing up the formatting (i.e. leaving an empty field) should be easy enough for me to clean up, so simply either deleting the column or an arbitrarily large numeral is acceptable.