diff options
Diffstat (limited to 'dayplan.ksh')
-rwxr-xr-x | dayplan.ksh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/dayplan.ksh b/dayplan.ksh index b546a5e..eaf6135 100755 --- a/dayplan.ksh +++ b/dayplan.ksh @@ -2,6 +2,12 @@ # our target file DATE=$(date +\%Y-\%m-\%d) + +if [ $# -ne 0 ] +then + DATE=$1 +fi + TODAY_PLANNER=~/Notes/journal/day_plans/$DATE.txt if [[ -a $TODAY_PLANNER ]] |