On Fri, Sep 10, 2010 at 1:09 PM, Afan Pasalic <afan at afan.net> wrote: > On 9/10/2010 1:07 PM, Jeff Chapin wrote: >> $ date -d "10 days ago" >> Tue Aug 31 13:06:42 CDT 2010 > > I'm not quite sure how to use this within the code? DATE=`date -d "10 days ago" +"%Y%m%d"` Then $DATE will be something like "20100831" -- Jeff Ollie