Find number of days and list out the dates in between

Hi All,

Can unix cshell list out the number of days between 070201 and 070205 (format is yymmdd) and list out all the dates in between in similiar format.

set startdate = `date '+%y%m%d'` #eg 070201
set enddate = `date '+%y%m%d'` #eg 070205

i would expect the number of days to be 5 days inlcusive.
and i would expect the scripte to list out the dates between them like
070201
070202
070203
070204
070205

can anybody help ?

You are very unlikely get get anyone who has a script to do this is csh, and fewer again who would even bother trying, csh does not make doing this kind of thing easy.

Perhaps take a look at date manipulation