bin: hledger-simplebal.sh -> hledger-simplebal
This commit is contained in:
parent
a7d4c3ad1e
commit
c783ebcee6
@ -1,10 +1,7 @@
|
||||
#!/usr/bin/env bash
|
||||
# hledger-simplebal [BALANCEARGS] - try to reliably report just one single
|
||||
# machine-readable balance number: the grand total of `hledger balance`,
|
||||
# optionally with arguments.
|
||||
#
|
||||
# Requires hledger 1.24 or newer (the December 2021 release, see https://hledger.org/download.html )
|
||||
# https://gist.github.com/simonmichael/feee7fc1567c5f10355f952b87bd3090
|
||||
# hledger-simplebal [BALANCEARGS] - try to reliably report the grand
|
||||
# total of `hledger balance`, optionally with arguments, as a single
|
||||
# machine-readable number. Requires hledger 1.24 or newer.
|
||||
|
||||
VALUATION_COMMODITY="$"
|
||||
hledger bal -0 -N -X "$VALUATION_COMMODITY" --infer-market-prices -c "$VALUATION_COMMODITY 1000" --layout=bare "$@" | awk '{print $1}'
|
||||
Loading…
Reference in New Issue
Block a user