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

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

 



Paul Guglielmino <mailto:paulg@xxxxxxxxxxx>
    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.

-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux