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