#!/bin/sh # mkhol if [ -z "$HOLIDAY" ] ; then HOL="$HOLIDAY" else HOL="$HOME/docs/wr/lle/hol" fi if [ -z "$1" ] ; then # TODO: add logic to verify the date is valid echo "You need to provide a date parameter"; return; fi if [ -z "$2" ] ; then echo "Please enter a place where you went."; return; fi mkdir -p "$HOL/$1-$2"