From f59cc8c37db68b7781de37c83b624b313b0b3437 Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Tue, 4 Oct 2022 14:10:53 +0100 Subject: put todj into bash script --- todj | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 todj (limited to 'todj') diff --git a/todj b/todj new file mode 100755 index 0000000..e3f2942 --- /dev/null +++ b/todj @@ -0,0 +1,11 @@ +#!/usr/bin/bash + +if [[ $1 = "-v" ]] +then + CMD=vim +else + CMD=cat + # $CMD $(find /home/lemon/Notes/journal -name "*$(date '+%Y-%m-%d')*") + $CMD $(find /home/lemon/Notes/journal -name \*$(date '+%Y-%m-%d'\*)) +fi + -- cgit v1.2.3