summary refs log tree commit diff
path: root/find_unknown.sh
blob: 650b3722b75d066ea1aa49c02c5cac029dc513ea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh
file="$1"

rules="lmcu-checking.csv.rules"
if test "$2"; then
	rules="$2"
fi

category="unknown"
if test "$3"; then
	category="$3"
fi

hledger -f"$file" --rules "$rules" print | grep -B2 expenses:unknown