bash date math

From: rick henderson (rick.henderson_at_wsdtx.org)
Date: 07/31/03

  • Next message: Michael Gargiullo: "cygwin"
    To: redhat <redhat-list@redhat.com>
    Date: 31 Jul 2003 09:45:55 -0500
    
    

    Dear list,

    In a bash script, I need to know the previous day.

    if 03012003 then 02282003
    if 05012003 then 04302003
    if 08012003 then 07312003

    using date, I can get todays date. But I need date math.

    any suggestions on how to do this?

    Rick

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

  • Next message: Michael Gargiullo: "cygwin"

    Relevant Pages

    • Re: bash date math
      ... > In a bash script, I need to know the previous day. ... I can get todays date. ... But I need date math. ... unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe ...
      (RedHat)
    • bash scripting problem
      ... In my bash script, I want to use a pathname whihc contain a white ... there is a space between foo and bar? ... Rick ...
      (comp.unix.shell)