From f6f4a46cf5b14f9a2170cd6475958efbf320caec Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Tue, 5 Aug 2008 13:17:04 -0400 Subject: Moved around most of the files so that source code is in src/, documentation is in doc/, etc. --- contrib/scripts/bal | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100755 contrib/scripts/bal (limited to 'contrib/scripts/bal') diff --git a/contrib/scripts/bal b/contrib/scripts/bal new file mode 100755 index 00000000..423e3e41 --- /dev/null +++ b/contrib/scripts/bal @@ -0,0 +1,21 @@ +#!/bin/sh + +switch="-c" +limit="-t (/Liabilities/?a<0:Ua>100)&a" + +if [ "$1" = "-C" -o "$1" = "-U" ]; then + switch="$1" + shift +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" +else + limit="" +fi + +ledger -VQ $switch $limit -s -S "-UT" balance $accts -- cgit v1.2.3