summary refs log tree commit diff
path: root/find_unknown.sh
diff options
context:
space:
mode:
authorZach DeCook <zachdecook@librem.one>2026-09-11 20:44:47 -0400
committerZach DeCook <zachdecook@librem.one>2026-09-11 20:44:47 -0400
commitb1c11ecfd4f9b6afffcfadc781de6c62972c1bac (patch)
treea955d961d1868697500045861d67254bc75ce88d /find_unknown.sh
downloadhledger-b1c11ecfd4f9b6afffcfadc781de6c62972c1bac.tar.gz
hledger: Add scripts and rules
Diffstat (limited to 'find_unknown.sh')
-rwxr-xr-xfind_unknown.sh14
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