I haven't gotten a chance to try autobean.refactor yet and it's probably
the best tool here. Just in case it doesn't work for whatever reason,
there's an older attempt at this functionality that jbms did called
JournalEditor. Here's an example of using it to rename accounts
<https://github.com/jbms/beancount-import/blob/master/beancount_import/rename_account.py>.
I've used it for various jobs and it has worked well for me.

On Tue, Jan 10, 2023 at 4:49 PM Martin Michlmayr <t...@cyrius.com> wrote:

> * Tim Legg <timl...@gmail.com> [2023-01-09 11:44]:
> > 2008-04-25 * "#AMAZON.COM" ""
> > Liabilities:BofA:PlatinumPlus -14.36 USD
> > Expenses:Buckets:Unaccounted 14.36 USD
> >
> > I would like to script up something to go through all transactions where
> > payee is ~ 'amazon' and change the Unaccounted to something else.
>
> I haven't looked at it yet but check out the emails about
> "autobean.refactor" from October 2022 on this mailing list.
> You should be able to fix up your file with autobean.refactor.
>
> --
> Martin Michlmayr
> https://www.cyrius.com/
>
> --
> You received this message because you are subscribed to the Google Groups
> "Beancount" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to beancount+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/beancount/Y74HnY/7NDMacE%2BL%40jirafa.cyrius.com
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Beancount" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beancount+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beancount/CACGEkZsStZCdHi_UF22jZt8gg%3D2EUtsk6a7F4rz9ZW29C5JDyw%40mail.gmail.com.

Reply via email to