<?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: Help to do a script in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/help-to-do-a-script/m-p/4376174#M347965</link>
    <description>You can use: &lt;BR /&gt;&lt;BR /&gt;h = $((i -1))&lt;BR /&gt;&lt;BR /&gt;See the example here - &lt;A href="http://www.unix.com/shell-programming-scripting/11953-korn-shell-script-getting-yesterdays-date.html" target="_blank"&gt;http://www.unix.com/shell-programming-scripting/11953-korn-shell-script-getting-yesterdays-date.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;ivan</description>
    <pubDate>Tue, 10 Mar 2009 22:44:52 GMT</pubDate>
    <dc:creator>Ivan Krastev</dc:creator>
    <dc:date>2009-03-10T22:44:52Z</dc:date>
    <item>
      <title>Help to do a script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-to-do-a-script/m-p/4376173#M347964</link>
      <description>Hello gurus,&lt;BR /&gt;I'm trying to make a script by using shell. I would like to substract 1 hour to the current date and to get the result in this format (Month Day Hour):&lt;BR /&gt;&lt;BR /&gt;Mar 10 18 (It is March 10 at 19 hours)&lt;BR /&gt;Mar  9 23 (It is March 10 at 00 hours)&lt;BR /&gt;&lt;BR /&gt;My variable is:&lt;BR /&gt;i=`date +'%-3.4h %2.1d %H'`&lt;BR /&gt;&lt;BR /&gt;How can i substract 1 hour to my variable $i in shell?</description>
      <pubDate>Tue, 10 Mar 2009 22:37:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-to-do-a-script/m-p/4376173#M347964</guid>
      <dc:creator>Christian Aguilar Varga</dc:creator>
      <dc:date>2009-03-10T22:37:43Z</dc:date>
    </item>
    <item>
      <title>Re: Help to do a script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-to-do-a-script/m-p/4376174#M347965</link>
      <description>You can use: &lt;BR /&gt;&lt;BR /&gt;h = $((i -1))&lt;BR /&gt;&lt;BR /&gt;See the example here - &lt;A href="http://www.unix.com/shell-programming-scripting/11953-korn-shell-script-getting-yesterdays-date.html" target="_blank"&gt;http://www.unix.com/shell-programming-scripting/11953-korn-shell-script-getting-yesterdays-date.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;ivan</description>
      <pubDate>Tue, 10 Mar 2009 22:44:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-to-do-a-script/m-p/4376174#M347965</guid>
      <dc:creator>Ivan Krastev</dc:creator>
      <dc:date>2009-03-10T22:44:52Z</dc:date>
    </item>
    <item>
      <title>Re: Help to do a script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-to-do-a-script/m-p/4376175#M347966</link>
      <description>You could also move the TimeZone by an hour before running i=`date +'%-3.4h %2.1d %H'`&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 10 Mar 2009 22:51:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-to-do-a-script/m-p/4376175#M347966</guid>
      <dc:creator>Mark McDonald_2</dc:creator>
      <dc:date>2009-03-10T22:51:06Z</dc:date>
    </item>
    <item>
      <title>Re: Help to do a script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-to-do-a-script/m-p/4376176#M347967</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;Use Perl;&lt;BR /&gt;&lt;BR /&gt;# i=$(perl -MPOSIX -le 'print strftime "%h %2d %H",localtime(time-3600)')&lt;BR /&gt;&lt;BR /&gt;# echo ${i}&lt;BR /&gt;Mar 10 18&lt;BR /&gt;&lt;BR /&gt;Use the same date formatting directives that you are accustomed to using --- see the 'date' manpages if you like.&lt;BR /&gt;&lt;BR /&gt;This above code handles one-hour (3600 second) transitions across months and years without any other effort.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 10 Mar 2009 22:57:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-to-do-a-script/m-p/4376176#M347967</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2009-03-10T22:57:36Z</dc:date>
    </item>
    <item>
      <title>Re: Help to do a script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-to-do-a-script/m-p/4376177#M347968</link>
      <description>&lt;P&gt;See Clay's caljd.sh script:&lt;BR /&gt;&lt;A target="_blank" href="http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1158441"&gt;http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1158441&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 02 Oct 2011 02:53:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-to-do-a-script/m-p/4376177#M347968</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2011-10-02T02:53:03Z</dc:date>
    </item>
  </channel>
</rss>

