Write a shell script to find whether the first day of the month is a working day

Hi ,
I am relatively new to unix...
Can u pls help me out to find out if the first day of the month is a working day ie from (Monday to Friday)...using Date and If clause in Korn shell..

This is very urgent.
Thanks for ur help...

Hello,

   Do you want to get the output of the current month or any month that you give..

Please make the needed thing clear..

Thanks
esham

Hi Esham,
The script runs every day.....
So it should be for any month.....

Thanks ...

Look at "Yesterdays Date/Date Arithmetic" in our FAQ section.

man cal
or
man date

Using case...

case $(date "+%a%d") in
    Mon01|Tue01|Wed01|Thu01|Fri01) echo true ;;
    *) echo false ;;
esac

thats a good solution...

and its simple also...

esham :):slight_smile:

excellent thats very quick..

thnks esham ...and Ygor...:slight_smile: