<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: date manipulation in shell script in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/date-manipulation-in-shell-script/m-p/3270784#M884675</link>
    <description>You can download caljd.sh or caljd.pl from here:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.cmve.net/~merijn/#Contrib" target="_blank"&gt;http://www.cmve.net/~merijn/#Contrib&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;It is at the bottom of the page.</description>
    <pubDate>Fri, 07 May 2004 11:04:24 GMT</pubDate>
    <dc:creator>Patrick Wallek</dc:creator>
    <dc:date>2004-05-07T11:04:24Z</dc:date>
    <item>
      <title>date manipulation in shell script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/date-manipulation-in-shell-script/m-p/3270782#M884673</link>
      <description>Hi,&lt;BR /&gt;I, i need to write a shell script where is possible assign to a variable the 'date' value of +n or -n days  starting from current date&lt;BR /&gt;In other words:&lt;BR /&gt;I have:&lt;BR /&gt;SYS_DATE="$( date '+%Y%m%d' )"&lt;BR /&gt;&lt;BR /&gt;how can I do something like:&lt;BR /&gt;YESTERDAY_DATE= "$( date '+%Y%m%d' )" -1&lt;BR /&gt;or &lt;BR /&gt;TOMORROW_DATE= "$( date '+%Y%m%d' )" +1&lt;BR /&gt;&lt;BR /&gt;avoid writing date calculation routines?&lt;BR /&gt;&lt;BR /&gt;any ideas?&lt;BR /&gt;Tahnkyou</description>
      <pubDate>Fri, 07 May 2004 10:57:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/date-manipulation-in-shell-script/m-p/3270782#M884673</guid>
      <dc:creator>Paolo Gilli</dc:creator>
      <dc:date>2004-05-07T10:57:01Z</dc:date>
    </item>
    <item>
      <title>Re: date manipulation in shell script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/date-manipulation-in-shell-script/m-p/3270783#M884674</link>
      <description>Use a date calc routine that already written.  Search for A. Clay Stephensons caljd.sh or caljd.pl script.  It should be easy to find in the forums.  His script will do exactly what you want.</description>
      <pubDate>Fri, 07 May 2004 10:59:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/date-manipulation-in-shell-script/m-p/3270783#M884674</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2004-05-07T10:59:47Z</dc:date>
    </item>
    <item>
      <title>Re: date manipulation in shell script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/date-manipulation-in-shell-script/m-p/3270784#M884675</link>
      <description>You can download caljd.sh or caljd.pl from here:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.cmve.net/~merijn/#Contrib" target="_blank"&gt;http://www.cmve.net/~merijn/#Contrib&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;It is at the bottom of the page.</description>
      <pubDate>Fri, 07 May 2004 11:04:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/date-manipulation-in-shell-script/m-p/3270784#M884675</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2004-05-07T11:04:24Z</dc:date>
    </item>
    <item>
      <title>Re: date manipulation in shell script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/date-manipulation-in-shell-script/m-p/3270785#M884676</link>
      <description>I'll make it easy for you and this is the latest version of caljd.sh.&lt;BR /&gt;&lt;BR /&gt;YESTERDAY_DATE=$(caljd.sh -s -y $(caljd.sh -p 1))&lt;BR /&gt;echo "Yesterday = ${YESTERDAY_DATE}"&lt;BR /&gt;TOMORROW_DATE=$(caljd.sh -s -y $(caljd.sh -n 1))&lt;BR /&gt;echo "Tomorrow = ${TOMORROW_DATE}"&lt;BR /&gt;&lt;BR /&gt;Invoke as caljd.sh -u for full usage and many examples (like previous date plus skip over weekends).&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 07 May 2004 11:05:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/date-manipulation-in-shell-script/m-p/3270785#M884676</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2004-05-07T11:05:32Z</dc:date>
    </item>
    <item>
      <title>Re: date manipulation in shell script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/date-manipulation-in-shell-script/m-p/3270786#M884677</link>
      <description>I'm using the mktime SW and it's great!&lt;BR /&gt;&lt;A href="http://members.rogers.com/weirdways/technogeek/source/mktime/" target="_blank"&gt;http://members.rogers.com/weirdways/technogeek/source/mktime/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Art</description>
      <pubDate>Mon, 10 May 2004 02:46:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/date-manipulation-in-shell-script/m-p/3270786#M884677</guid>
      <dc:creator>Arturo Galbiati</dc:creator>
      <dc:date>2004-05-10T02:46:58Z</dc:date>
    </item>
    <item>
      <title>Re: date manipulation in shell script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/date-manipulation-in-shell-script/m-p/3270787#M884678</link>
      <description>SUPER!!!&lt;BR /&gt;Thankyou&lt;BR /&gt;Regards &lt;BR /&gt;Paolo</description>
      <pubDate>Mon, 10 May 2004 02:54:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/date-manipulation-in-shell-script/m-p/3270787#M884678</guid>
      <dc:creator>Paolo Gilli</dc:creator>
      <dc:date>2004-05-10T02:54:10Z</dc:date>
    </item>
    <item>
      <title>Re: date manipulation in shell script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/date-manipulation-in-shell-script/m-p/3270788#M884679</link>
      <description>An other great help by Art! &lt;BR /&gt;Thakyou!</description>
      <pubDate>Mon, 10 May 2004 04:07:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/date-manipulation-in-shell-script/m-p/3270788#M884679</guid>
      <dc:creator>Paolo Gilli</dc:creator>
      <dc:date>2004-05-10T04:07:37Z</dc:date>
    </item>
  </channel>
</rss>

