Re: print a tag value
Of course... I guess I could have also escaped the quotes: reg --format "%(tag(\"num\")) \\n" Thanks! On Tuesday, February 9, 2021 at 10:10:01 PM UTC-5 Martin Michlmayr wrote: > * acer [2021-02-09 18:50]: > > How do I print the value of num in the report? When trying > > > > reg --format " %(num) \\n" > > reg --format " %(tag('num')) \\n" > > -- > Martin Michlmayr > https://www.cyrius.com/ > -- --- You received this message because you are subscribed to the Google Groups "Ledger" group. To unsubscribe from this group and stop receiving emails from it, send an email to ledger-cli+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ledger-cli/d020a851-8807-4a25-a681-e11e369656c8n%40googlegroups.com.
Re: print a tag value
* acer [2021-02-09 18:50]: > How do I print the value of num in the report? When trying > > reg --format " %(num) \\n" reg --format " %(tag('num')) \\n" -- Martin Michlmayr https://www.cyrius.com/ -- --- You received this message because you are subscribed to the Google Groups "Ledger" group. To unsubscribe from this group and stop receiving emails from it, send an email to ledger-cli+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ledger-cli/20210210030954.GA4568%40jirafa.cyrius.com.
print a tag value
What is the correct way to print the value of a tag in a report? For data: 2021/02/09 payname ; num: 1 Asset:Account $5.00 Expense:Account 2021/02/08 otherpay ; num: 2 Liability:Account $150.00 Income:Account How do I print the value of num in the report? When trying reg --format " %(num) \\n" I get this error message: While calculating format expression: num While evaluating value expression: num ^^^ While handling posting from " \Data\exam1.ledger", line 87: > od $100 > ; As > 2021/02/09 payname > Error: Unknown identifier 'num' With the command: reg --format " %num \\n" I get: Error: Unrecognized formatting character: n -- --- You received this message because you are subscribed to the Google Groups "Ledger" group. To unsubscribe from this group and stop receiving emails from it, send an email to ledger-cli+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ledger-cli/823b6467-1cfa-45f9-9d55-cbedf544c543n%40googlegroups.com.