Re: Options for specifying account in a balance query

2019-01-02 Thread Scott Carpenter
Yep I had the longer version with --limit and account =~ Thanks for the tip! On Wednesday, January 2, 2019 at 7:30:08 PM UTC-6, Martin Michlmayr wrote: > > * Scott Carpenter > [2019-01-02 15:11]: > > Sigh. No sooner posted than I had a better idea for finding it in the > docs > > and looks

Re: Options for specifying account in a balance query

2019-01-02 Thread Martin Michlmayr
* Scott Carpenter [2019-01-02 15:11]: > Sigh. No sooner posted than I had a better idea for finding it in the docs > and looks like "6.2.1 Controlling the Accounts and Payees" has what I need. So what did you end up with? I assume ledger -f d bal --limit "account =~ /unwise%$/" If so,

Re: Options for specifying account in a balance query

2019-01-02 Thread Scott Carpenter
Sigh. No sooner posted than I had a better idea for finding it in the docs and looks like "6.2.1 Controlling the Accounts and Payees" has what I need. I had looked for --account but gave up too quickly. On Wednesday, January 2, 2019 at 5:08:57 PM UTC-6, Scott Carpenter wrote: > > In my

Options for specifying account in a balance query

2019-01-02 Thread Scott Carpenter
In my ledgerbil program I construct ledger queries for accounts and ran into an issue when the account ended with a % sign. I now realize a % sign in the account name probably isn't a great idea, but I'd like to handle if possible. An example! Let's say we have an account: assets: unwise%