#! /bin/ksh # # case $# in 2) start=$1; end=$2 ;; *) echo "Need a start and end time"; exit 1;; esac now=$(date +%H) if [[ $now -ge $start && $now -lt $end ]] ; then echo "Judgement Day has arrived." else echo "Judgement Dat yet to arrive." fi;