diff options
| author | Zach DeCook <zachdecook@librem.one> | 2026-09-11 20:44:47 -0400 |
|---|---|---|
| committer | Zach DeCook <zachdecook@librem.one> | 2026-09-11 20:44:47 -0400 |
| commit | b1c11ecfd4f9b6afffcfadc781de6c62972c1bac (patch) | |
| tree | a955d961d1868697500045861d67254bc75ce88d /find_unknown.sh | |
| download | hledger-b1c11ecfd4f9b6afffcfadc781de6c62972c1bac.tar.gz | |
hledger: Add scripts and rules
Diffstat (limited to 'find_unknown.sh')
| -rwxr-xr-x | find_unknown.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/find_unknown.sh b/find_unknown.sh new file mode 100755 index 0000000..650b372 --- /dev/null +++ b/find_unknown.sh @@ -0,0 +1,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 |
