aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Lemon <matt@matthewlemon.com>2022-10-04 14:10:53 +0100
committerMatthew Lemon <matt@matthewlemon.com>2022-10-04 14:10:53 +0100
commitf59cc8c37db68b7781de37c83b624b313b0b3437 (patch)
tree87c4a019c0707edd30d556f17d65c4d35e61ad56
parentf8816542b6455125406e2f0bac33313b7354899f (diff)
put todj into bash script
-rwxr-xr-xtodj11
1 files changed, 11 insertions, 0 deletions
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
+