From: Edward Delaporte Date: Sun, 30 Aug 2026 03:18:46 +0000 (-0500) Subject: Add at command to search by context X-Git-Url: https://us-delaporte.pagekite.me/gitweb/minion.git/commitdiff_plain/1853b9b4021c1b24683e6fbc60dd1c4ef502bf30 Add at command to search by context --- diff --git a/bin/at b/bin/at new file mode 100755 index 0000000..393d3f7 --- /dev/null +++ b/bin/at @@ -0,0 +1,13 @@ +#!/bin/bash +# at foo - searches ~/Journal/YYYY/MM-daily.md for @foo +# One file per month + +year=`date +%Y` +topic='daily' +mkdir -p "$HOME/Journal/$year" +month=`date +%m` +fname="$HOME/Journal/$year/$month-$topic.md" + +search="@$1" + +cat $fname | grep $search