summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Sima <ben@bsima.me>2021-11-30 12:55:46 -0500
committerBen Sima <ben@bsima.me>2021-11-30 12:55:46 -0500
commitc0862a0adb5a2aceffb5085f6e20e71f87b0bf2e (patch)
treef41b6c22f640041781960b9b7faab59ee47b8158
parent1f9d834d429cfed3708262090074da955e7f3f81 (diff)
output formatting
-rwxr-xr-xbips4
1 files changed, 2 insertions, 2 deletions
diff --git a/bips b/bips
index 7df76cd..21d7e33 100755
--- a/bips
+++ b/bips
@@ -6,8 +6,8 @@ networth=$(hledger bal ^as ^li --value=now,USD --output-format=csv \
bp=$(bc -l <<< "$networth * 0.0001")
if [[ $1 == "--from" ]]
then
- printf "%0.f USD" $(bc -l <<< "$bp * $2")
+ printf "%0.f USD\n" $(bc -l <<< "$bp * $2")
else
- printf "%.0f bips" $(bc -l <<< "$1/$bp")
+ printf "%.0f bips\n" $(bc -l <<< "$1/$bp")
fi