I'm looking for a straight Unix commands to get first Sunday of next month, first Monday of next month, first Tuesday of next month, first Wednesday of next month etc.
- I will need them in the complete date format ( time is not mandatory ) 
- I can get numbers like 2, 3, 4 etc. As I don't want only numbers, I will need them in date format (includes day, month, year) - $ NEXT_MONTH=`date +'%m %Y' -d 'next month'` $ echo $NEXT_MONTH 04 2017 $ NEXT_SUNDAY=`cal $NEXT_MONTH | awk 'NF==7 && !/^Su/{print $1;exit}'` $ echo $NEXT_SUNDAY 2
- I will need these dates to send notifications for the email group. 
Ex: I could get the first Saturday of next month as below.
$ firstofmonth=$(date -d '+1 months' '+%Y%m01')
20170401
$ firstsaturday=$(date -d "$firstofmonth" '+%Y-%m')-$((7 - \
                $(date -d "$firstofmonth" '+%u')     ))    
2017-04-1

