blob: ecd67e0d96a6ecd007554efb863d2764efa5855d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#!/bin/bash
command=$1
shift
case "$command" in
balance) ledger "$@" balance -- -Equity -Income -Expenses -Retirement ;;
worth) ledger "$@" balance assets liabilities ;;
profit) ledger "$@" balance income expense ;;
spending) ledger "$@" balance -F food movies gas tips \
health supplies -insurance -vacation ;;
monthly_spending)
for i in jan feb mar apr may jun jul aug sep oct nov dec
do
echo $i:
$0 spending -d $i
done ;;
huquq) ledger "$@" balance -n ^huquq ;;
equity) ledger "$@" equity -- -^Income -^Expenses -^Equity ;;
esac
|