diff options
author | Matthew Lemon <matt@matthewlemon.com> | 2022-10-04 14:10:53 +0100 |
---|---|---|
committer | Matthew Lemon <matt@matthewlemon.com> | 2022-10-04 14:10:53 +0100 |
commit | f59cc8c37db68b7781de37c83b624b313b0b3437 (patch) | |
tree | 87c4a019c0707edd30d556f17d65c4d35e61ad56 /todj | |
parent | f8816542b6455125406e2f0bac33313b7354899f (diff) |
put todj into bash script
Diffstat (limited to '')
-rwxr-xr-x | todj | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -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 + |