<?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: Scripting Help in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-help/m-p/2598205#M33743</link>
    <description>Thanks to all to their wonderful tips.</description>
    <pubDate>Mon, 22 Oct 2001 00:19:38 GMT</pubDate>
    <dc:creator>Smirjit Singh</dc:creator>
    <dc:date>2001-10-22T00:19:38Z</dc:date>
    <item>
      <title>Scripting Help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-help/m-p/2598201#M33739</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I need help to calculate date difference.&lt;BR /&gt;&lt;BR /&gt;Suppose if anyone  pass two date then it should return actual day difference. It should calculate leap year also.&lt;BR /&gt;&lt;BR /&gt;Like:&lt;BR /&gt; datediff.sh 25/01/2001   20/03/2001&lt;BR /&gt;It should return  55 days.&lt;BR /&gt;&lt;BR /&gt;Pls help me.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Sat, 20 Oct 2001 00:25:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-help/m-p/2598201#M33739</guid>
      <dc:creator>Smirjit Singh</dc:creator>
      <dc:date>2001-10-20T00:25:28Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting Help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-help/m-p/2598202#M33740</link>
      <description>Here's a simple program from David Totsch that can help...dtime compiles with the built-in compiler:&lt;BR /&gt;&lt;BR /&gt;ftp://contrib:9unsupp8@hprc.external.hp.com/sysadmin/programs/</description>
      <pubDate>Sat, 20 Oct 2001 01:30:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-help/m-p/2598202#M33740</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2001-10-20T01:30:45Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting Help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-help/m-p/2598203#M33741</link>
      <description>Hi Sandip,&lt;BR /&gt;&lt;BR /&gt;Using the caljd.sh script, this is a piece of cake. Believe me caljd.sh is pretty powerful dealing with dates, calculating different kind of dates/days of week. takes leap years in to consideration as well.&lt;BR /&gt;&lt;BR /&gt;You could do something like,&lt;BR /&gt;&lt;BR /&gt;/Begin/&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/ksh&lt;BR /&gt;&lt;BR /&gt;PATH=/usr/bin:/usr/local/bin&lt;BR /&gt;&lt;BR /&gt;arg1=`echo $1 | sed 's/\// /g'`&lt;BR /&gt;arg2=`echo $2 | sed 's/\// /g'`&lt;BR /&gt;&lt;BR /&gt;temp1=`caljd.sh $arg1`&lt;BR /&gt;temp2=`caljd.sh $arg2`&lt;BR /&gt;&lt;BR /&gt;# temp2=`caljd.sh 03 20 2001`&lt;BR /&gt;# temp1=`caljd.sh 01 25 2001`&lt;BR /&gt;&lt;BR /&gt;echo "$temp1-$temp2" | bc&lt;BR /&gt;&lt;BR /&gt;/End/&lt;BR /&gt;&lt;BR /&gt;This script will calculate the difference between the two arguments given to this program. &lt;BR /&gt;&lt;BR /&gt;Remember to give the dates in the format mm/dd/yy&lt;BR /&gt;&lt;BR /&gt;-HTH&lt;BR /&gt;Ramesh&lt;BR /&gt;</description>
      <pubDate>Sat, 20 Oct 2001 01:37:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-help/m-p/2598203#M33741</guid>
      <dc:creator>linuxfan</dc:creator>
      <dc:date>2001-10-20T01:37:07Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting Help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-help/m-p/2598204#M33742</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;Sine I posted caljd.sh, I have found a small but stupid bug on my part. I missed one integer divide and it evaluated to a floating point divide. This could lead to small errors but this version of caljd.sh corrects that.&lt;BR /&gt;&lt;BR /&gt;Clay</description>
      <pubDate>Sat, 20 Oct 2001 21:54:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-help/m-p/2598204#M33742</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2001-10-20T21:54:49Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting Help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-help/m-p/2598205#M33743</link>
      <description>Thanks to all to their wonderful tips.</description>
      <pubDate>Mon, 22 Oct 2001 00:19:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-help/m-p/2598205#M33743</guid>
      <dc:creator>Smirjit Singh</dc:creator>
      <dc:date>2001-10-22T00:19:38Z</dc:date>
    </item>
  </channel>
</rss>

