RSS Amplifier

Rida Ayed · Oct 13, 2021

Get latest ledger transaction's date only

0
Sign in to vote or save

This page cannot be shown here. You can still read it on the original site — the toolbar below keeps your place in the directory.

#Content of ~/tmp/file.dat 2099/02/07 * acme Expenses:Groceries $ 1 Assets:Cash 2089/11/07 * foobar Expenses:Groceries $ 4 Assets:Cash I want – from the account Assets:Cash and from the latest transaction (acme) – only the date. I need the date formatted as Year-Month-Day . ledger -f ~/tmp/file.dat reg \ Assets:Cash \ --tail 1 \ --format %D \ --date-format %Y-%m-%d 2099-11-07

Read on /posts/get-latest-ledger-transaction-s-date-only/

Comments

Nothing yet. Say the first thing.

    Sign in to join the conversation.