bal-huquq 389 B

12345678910111213141516171819202122
  1. #!/bin/sh
  2. switch="-c"
  3. limit="-t (/Liabilities/?(/Huquq/?a/P{2.22AU}<={-1.0}:a<0):Ua>100)&a"
  4. if [ "$1" = "-C" -o "$1" = "-U" ]; then
  5. switch="$1"
  6. shift
  7. elif [ "$1" = "-b" -o "$1" = "-e" -o "$1" = "-p" ]; then
  8. switch="$1 $2"
  9. shift 2
  10. fi
  11. accts="$@"
  12. if [ -z "$accts" ]; then
  13. accts="-Equity -Income -Expenses"
  14. else
  15. limit=""
  16. fi
  17. ledger -VQ $switch $limit -s -S "-UT" balance $accts