Hi Am using Unix Ksh
I have a two date input as
DATE1=02/12/2012
DATE2=30/12/2012
I Need the output as only sunday date
02/12/2012
09/12/2012
16/12/2012
23/12/2012
30/12/2012
[LEFT]can anyone pls help me..
thanks in advance...[/LEFT]
Hi Am using Unix Ksh
I have a two date input as
DATE1=02/12/2012
DATE2=30/12/2012
I Need the output as only sunday date
02/12/2012
09/12/2012
16/12/2012
23/12/2012
30/12/2012
[LEFT]can anyone pls help me..
thanks in advance...[/LEFT]
you can use the below command to find out the sunday's in the month
$ cal 12 2012 | awk 'NR==3&&NF==7{print $1}NR>3{print $1}'
2
9
16
23
30
For finding out all the sunday's b/w two dates(differnt month), you need to put some logic to extract the sunday's from different months