summaryrefslogtreecommitdiff
path: root/bin/myhledger
blob: caa8cb38a10d373dd44bb84f6fc71599ff3abc48 (plain)
  1. #!/bin/sh
  2. # use hledger with piles of journal chunks
  3. #
  4. # Example usage:
  5. #
  6. ## Check expenses against bank account
  7. # myhledger register liabilities:payable -B --date2 -p "from 2011"
  8. #
  9. # myhledger balance -p "every 6 months in 2012" --date2
  10. # myhledger balance -p "from 2012-07 to 2013"
  11. # myhledger reg :kp
  12. # myhledger reg desc:012001
  13. set -e
  14. basedir="${basedir:-data}"
  15. hledger -f "$basedir/journal.ledger" "$@"