diff options
author | Ben Sima <ben@bsima.me> | 2021-11-30 12:55:46 -0500 |
---|---|---|
committer | Ben Sima <ben@bsima.me> | 2021-11-30 12:55:46 -0500 |
commit | c0862a0adb5a2aceffb5085f6e20e71f87b0bf2e (patch) | |
tree | f41b6c22f640041781960b9b7faab59ee47b8158 /bips | |
parent | 1f9d834d429cfed3708262090074da955e7f3f81 (diff) |
output formatting
Diffstat (limited to 'bips')
-rwxr-xr-x | bips | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |