#!/bin/sh ledger="${1:-$LEDGER_FILE}" selection="$(sed -n 's/....-..-..\( [*!]\)\? //p' "$ledger" | sort | uniq | fzf)" [ -z "$selection" ] && clear && exit 0 # quit if escaped cat <