[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

RE: bash script help: how to find mm-dd-yy of seven days ago?



Paul Guglielmino <mailto:paulg ccs neu edu>
    on Thursday, November 04, 2004 2:01 PM said:

> When using GNU date you can do something like this:
> 
> date -d +%m-+%d-+%y --date '7 days ago'
> 
> The date program will do the calculations for you. Hope that helps.

awesome! thanks!


chris.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]