From 891f946e86f8a0911f67983d52fccacc9f8ebbad Mon Sep 17 00:00:00 2001 From: Julio Capote Date: Wed, 13 Jul 2022 23:40:24 -0400 Subject: initial --- libexec/recit-today | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 libexec/recit-today (limited to 'libexec/recit-today') diff --git a/libexec/recit-today b/libexec/recit-today new file mode 100755 index 0000000..96cbec4 --- /dev/null +++ b/libexec/recit-today @@ -0,0 +1,13 @@ +#!/usr/bin/env bash +# Usage: recit today + +set -e + +# shellcheck source=/dev/null +source lib/loader + +recfile=$(load_recit) + +fmt_date=$(date '+%Y-%m-%d') + +recsel -e "(Time >> '$fmt_date 00:00:00' && Time << '$fmt_date 23:59:59') || Time == '$fmt_date'" -t Entry "${recfile}" -- cgit v1.2.3