From b742baf0205a91e6dc68f939647a4b1d37ec2474 Mon Sep 17 00:00:00 2001 From: bth Date: Sat, 13 Jan 2024 22:04:03 -0800 Subject: [PATCH] add tag command to grep for tag --- bash/tag.sh | 2 ++ bash/um | 6 ++++-- 2 files changed, 6 insertions(+), 2 deletions(-) create mode 100755 bash/tag.sh diff --git a/bash/tag.sh b/bash/tag.sh new file mode 100755 index 0000000..8ab3845 --- /dev/null +++ b/bash/tag.sh @@ -0,0 +1,2 @@ +# just list the files so we can pipe it. +grep -l "\+ $@" *md diff --git a/bash/um b/bash/um index d0616c1..33801fd 100755 --- a/bash/um +++ b/bash/um @@ -18,8 +18,10 @@ case "$1" in rename) $UMBASEPATH/rename.sh "${@:2}" ;; + tag) + $UMBASEPATH/tag.sh "${@:2}" + ;; *) - # else - echo "usage: um (next|last|cat|rename)" + echo "usage: um (next|last|cat|rename|tag)" ;; esac