Feb 6, 2005 Thread starter #3 municipal Programmer Jan 1, 2001 62 IL I am sorry, but I do not understand what to do with it Upvote 0 Downvote
Feb 6, 2005 1 #4 KenCunningham Technical User Mar 20, 2001 8,475 GB Test the output to see whether it's Sunday or not. Something like: dayofweek=`date +%A` if [ $dayofweek = "Sunday" ] then echo "Rest" else echo "Work harder!" fi HTH. Upvote 0 Downvote
Test the output to see whether it's Sunday or not. Something like: dayofweek=`date +%A` if [ $dayofweek = "Sunday" ] then echo "Rest" else echo "Work harder!" fi HTH.
Feb 7, 2005 Thread starter #5 municipal Programmer Jan 1, 2001 62 IL Thank you KenCunningham!! Upvote 0 Downvote
Feb 8, 2005 #6 ogniemi Technical User Nov 7, 2003 1,041 PL the other "way"... [ `date +%A` = Sunday ] && echo today is sunday || echo "today isn't sunday Upvote 0 Downvote