Hi. Is there a way to take an existing journal file and insert the same code field in every transaction?
I brought in 8 CSV files into 8 separate journal files, and manually edited each journal to fix up a few ‘unknown’ accounts, etc. before deciding I want the code field to denote the source bank account.
I changed my CSV rules files to include the code fields in the future, but really don’t want to re-run the CSV files and have to re-do all the manual adjustments.
I saw a reddit post suggesting using awk to adjust the text files, but thought I should check to see if there was an hledger command to do this. (I read the docs on ‘hledger print’ and came up empty)