<?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 me in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/help-me/m-p/2799315#M720654</link>
    <description>diff=`perl -e '{print ((stat($ARGV[0]))[9]-(stat($ARGV[1]))[9]);}' fileA fileB`&lt;BR /&gt;is the diff in seconds. (one hour is 3600 seconds)&lt;BR /&gt;&lt;BR /&gt;Hmmm,&lt;BR /&gt;&lt;BR /&gt;diff=`perl -le 'print+(-M shift)-(-M shift)' fileA fileB`&lt;BR /&gt;prints the diff in days (hours and seconds as fraction of days)&lt;BR /&gt;&lt;BR /&gt;1 hour = 0.0416667 day&lt;BR /&gt;&lt;BR /&gt;Playing dirty:&lt;BR /&gt;&lt;BR /&gt;perl -le '$^T=(stat shift)[9];-M shift()&amp;gt;-.0417 and print "Too old"' fileA fileB</description>
    <pubDate>Wed, 04 Sep 2002 07:09:15 GMT</pubDate>
    <dc:creator>H.Merijn Brand (procura</dc:creator>
    <dc:date>2002-09-04T07:09:15Z</dc:date>
    <item>
      <title>help me</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-me/m-p/2799311#M720650</link>
      <description>hi expert,&lt;BR /&gt;   I want to decide if the last modify time of file A is early 1 hour than file B,what can i do? how can i compare the time of two files?</description>
      <pubDate>Wed, 04 Sep 2002 05:30:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-me/m-p/2799311#M720650</guid>
      <dc:creator>eric_88</dc:creator>
      <dc:date>2002-09-04T05:30:11Z</dc:date>
    </item>
    <item>
      <title>Re: help me</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-me/m-p/2799312#M720651</link>
      <description>Hi Eric,&lt;BR /&gt;&lt;BR /&gt;you need two commands to find out...&lt;BR /&gt;&lt;BR /&gt;man find &lt;BR /&gt;&lt;BR /&gt;--&amp;gt; have a look to the -newer option, remember that you can use a reference file to compare times.&lt;BR /&gt;&lt;BR /&gt;man touch&lt;BR /&gt;&lt;BR /&gt;--&amp;gt; you can use the touch- command to create a file with a time stamp which you need&lt;BR /&gt;&lt;BR /&gt;This should do it for you.&lt;BR /&gt;&lt;BR /&gt;Allways stay on the bright side of life!&lt;BR /&gt;&lt;BR /&gt;Peter</description>
      <pubDate>Wed, 04 Sep 2002 05:42:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-me/m-p/2799312#M720651</guid>
      <dc:creator>Peter Kloetgen</dc:creator>
      <dc:date>2002-09-04T05:42:09Z</dc:date>
    </item>
    <item>
      <title>Re: help me</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-me/m-p/2799313#M720652</link>
      <description>ls -l filename|awk '{print $8}' gets the time.&lt;BR /&gt;compare them. i could not get any other leads&lt;BR /&gt;&lt;BR /&gt;kaps</description>
      <pubDate>Wed, 04 Sep 2002 05:47:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-me/m-p/2799313#M720652</guid>
      <dc:creator>KapilRaj</dc:creator>
      <dc:date>2002-09-04T05:47:21Z</dc:date>
    </item>
    <item>
      <title>Re: help me</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-me/m-p/2799314#M720653</link>
      <description>Hi Eric,&lt;BR /&gt;&lt;BR /&gt;You could use perl to get the difference in the two dates:&lt;BR /&gt;&lt;BR /&gt;diff=`perl -e '{print ((stat($ARGV[0]))[9]-(stat($ARGV[1]))[9]);}' fileA fileB`&lt;BR /&gt;&lt;BR /&gt;diff will now contain the number of seconds between the mod times of the 2 files.&lt;BR /&gt;&lt;BR /&gt;Rgds, Robin.</description>
      <pubDate>Wed, 04 Sep 2002 06:25:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-me/m-p/2799314#M720653</guid>
      <dc:creator>Robin Wakefield</dc:creator>
      <dc:date>2002-09-04T06:25:04Z</dc:date>
    </item>
    <item>
      <title>Re: help me</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-me/m-p/2799315#M720654</link>
      <description>diff=`perl -e '{print ((stat($ARGV[0]))[9]-(stat($ARGV[1]))[9]);}' fileA fileB`&lt;BR /&gt;is the diff in seconds. (one hour is 3600 seconds)&lt;BR /&gt;&lt;BR /&gt;Hmmm,&lt;BR /&gt;&lt;BR /&gt;diff=`perl -le 'print+(-M shift)-(-M shift)' fileA fileB`&lt;BR /&gt;prints the diff in days (hours and seconds as fraction of days)&lt;BR /&gt;&lt;BR /&gt;1 hour = 0.0416667 day&lt;BR /&gt;&lt;BR /&gt;Playing dirty:&lt;BR /&gt;&lt;BR /&gt;perl -le '$^T=(stat shift)[9];-M shift()&amp;gt;-.0417 and print "Too old"' fileA fileB</description>
      <pubDate>Wed, 04 Sep 2002 07:09:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-me/m-p/2799315#M720654</guid>
      <dc:creator>H.Merijn Brand (procura</dc:creator>
      <dc:date>2002-09-04T07:09:15Z</dc:date>
    </item>
  </channel>
</rss>

