summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbitcoin-bal5
1 files changed, 5 insertions, 0 deletions
diff --git a/bitcoin-bal b/bitcoin-bal
new file mode 100755
index 0000000..1fd7fb3
--- /dev/null
+++ b/bitcoin-bal
@@ -0,0 +1,5 @@
+#!/usr/bin/env bash
+btc=$(hledger bal cur:BTC ^as | tail -n1 | tr -d ' BTC')
+usd=$(echo "$1 * $btc" | bc)
+echo "$btc BTC"
+echo "$usd USD"