Hi,
I would recommend to use BQL, that should allow you to easily do it.
https://beancount.github.io/docs/beancount_query_language.html
You can use bql also from your scripts
Regards,
Patrick
--
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+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beancount/71818f11-e867-424e-9695-2c4d55e94d67n%40googlegroups.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+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beancount/20211127101046.tw5yy4x6b4ooxvmp%40upsilon.cc.
To view this discussion on the web visit https://groups.google.com/d/msgid/beancount/CAK21%2BhMVC7C57ghyWyQwa0oHf6Q4eZP2CG60R3JkhiurxuYk_g%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beancount/CAGQ70ev-66MnJfRcCn1RdADf7o%3D%3DpA7UrYOSvn0s9WVXeOMkAg%40mail.gmail.com.