aboutsummaryrefslogtreecommitdiffstats
path: root/todj
diff options
context:
space:
mode:
Diffstat (limited to 'todj')
-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
+