Sophie

Sophie

distrib > Fedora > 14 > x86_64 > by-pkgid > 7fa0f6db8d97281e48c03fa7a3b1420c > files > 12

ledger-2.6.3-2.fc14.1.i686.rpm

#!/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