<?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 Previous month date command in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/previous-month-date-command/m-p/3017429#M129723</link>
    <description>Hi, &lt;BR /&gt;&lt;BR /&gt;Is there a way of returning the previous months date without writing a complex script. For example if we are currently in July I would like to return the value of 06 (being June). I have looked at the date command but could not find anything suitable to my needs. &lt;BR /&gt;Could anyone please assist.&lt;BR /&gt;&lt;BR /&gt;Many thanks&lt;BR /&gt;oktay</description>
    <pubDate>Tue, 08 Jul 2003 06:02:14 GMT</pubDate>
    <dc:creator>Oktay Tasdemir</dc:creator>
    <dc:date>2003-07-08T06:02:14Z</dc:date>
    <item>
      <title>Previous month date command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/previous-month-date-command/m-p/3017429#M129723</link>
      <description>Hi, &lt;BR /&gt;&lt;BR /&gt;Is there a way of returning the previous months date without writing a complex script. For example if we are currently in July I would like to return the value of 06 (being June). I have looked at the date command but could not find anything suitable to my needs. &lt;BR /&gt;Could anyone please assist.&lt;BR /&gt;&lt;BR /&gt;Many thanks&lt;BR /&gt;oktay</description>
      <pubDate>Tue, 08 Jul 2003 06:02:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/previous-month-date-command/m-p/3017429#M129723</guid>
      <dc:creator>Oktay Tasdemir</dc:creator>
      <dc:date>2003-07-08T06:02:14Z</dc:date>
    </item>
    <item>
      <title>Re: Previous month date command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/previous-month-date-command/m-p/3017430#M129724</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;do like this:&lt;BR /&gt;X=$((`date +%m` -1))&lt;BR /&gt;if [ $X -eq 0 ]; then X=12; fi&lt;BR /&gt;echo $X&lt;BR /&gt;&lt;BR /&gt;Cheers.</description>
      <pubDate>Tue, 08 Jul 2003 06:06:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/previous-month-date-command/m-p/3017430#M129724</guid>
      <dc:creator>Bruno Vidal</dc:creator>
      <dc:date>2003-07-08T06:06:38Z</dc:date>
    </item>
    <item>
      <title>Re: Previous month date command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/previous-month-date-command/m-p/3017431#M129725</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;do like this:&lt;BR /&gt;X=$((`date +%m` -1))&lt;BR /&gt;if [ $X -eq 0 ]; then X=12; fi&lt;BR /&gt;echo $X&lt;BR /&gt;&lt;BR /&gt;Cheers.</description>
      <pubDate>Tue, 08 Jul 2003 06:07:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/previous-month-date-command/m-p/3017431#M129725</guid>
      <dc:creator>Bruno Vidal</dc:creator>
      <dc:date>2003-07-08T06:07:15Z</dc:date>
    </item>
    <item>
      <title>Re: Previous month date command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/previous-month-date-command/m-p/3017432#M129726</link>
      <description>Oups, sorry, a bit to hard on the "submit"...</description>
      <pubDate>Tue, 08 Jul 2003 06:09:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/previous-month-date-command/m-p/3017432#M129726</guid>
      <dc:creator>Bruno Vidal</dc:creator>
      <dc:date>2003-07-08T06:09:20Z</dc:date>
    </item>
    <item>
      <title>Re: Previous month date command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/previous-month-date-command/m-p/3017433#M129727</link>
      <description>Your a gem.&lt;BR /&gt;&lt;BR /&gt;Thankyou</description>
      <pubDate>Tue, 08 Jul 2003 21:19:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/previous-month-date-command/m-p/3017433#M129727</guid>
      <dc:creator>Oktay Tasdemir</dc:creator>
      <dc:date>2003-07-08T21:19:45Z</dc:date>
    </item>
  </channel>
</rss>

