diff options
author | John Wiegley <johnw@newartisans.com> | 2004-11-08 06:43:11 +0000 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2008-04-13 02:40:47 -0400 |
commit | c9fb11bd60a2170fb896d77ff8d7706f563ad597 (patch) | |
tree | 42bdf09e7d8727ba31d1d8dae9b4eb4b2a605441 /scripts/bal | |
parent | fa2ceaed13c031add578ee8eb33da0c9980b9fb1 (diff) | |
download | fork-ledger-c9fb11bd60a2170fb896d77ff8d7706f563ad597.tar.gz fork-ledger-c9fb11bd60a2170fb896d77ff8d7706f563ad597.tar.bz2 fork-ledger-c9fb11bd60a2170fb896d77ff8d7706f563ad597.zip |
updated to version 2.0
Diffstat (limited to 'scripts/bal')
-rwxr-xr-x[-rw-r--r--] | scripts/bal | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/scripts/bal b/scripts/bal index 7fdf54ca..be7c3a0a 100644..100755 --- a/scripts/bal +++ b/scripts/bal @@ -1,27 +1,21 @@ #!/bin/sh -switch="" -current="-c" -limit="-l \$50" -negonly="-N ^Liabilities" +switch="-c" +limit="-t (/Liabilities/?a<0:Ua>100)&a" -if [ "$1" = "-C" -o "$1" = "-U" -o "$1" = "-P" ]; then +if [ "$1" = "-C" -o "$1" = "-U" ]; then switch="$1" shift -elif [ "$1" = "-b" -o "$1" = "-e" ]; then - current="$1 $2" +elif [ "$1" = "-b" -o "$1" = "-e" -o "$1" = "-p" ]; then + switch="$1 $2" shift 2 fi accts="$@" if [ -z "$accts" ]; then accts="-Equity -Income -Expenses" - if [ ! "$switch" = "-P" ]; then - accts="$accts -Savings -Retirement" - fi else limit="" - negonly="" fi -ledger $current $limit $negonly -s $switch balance $accts +ledger -VQ $switch $limit -s -S "-AT" balance $accts |