<?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: How do I find Files older than 4 hours in HP UX11.11 in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/how-do-i-find-files-older-than-4-hours-in-hp-ux11-11/m-p/4253741#M678083</link>
    <description>Hi:&lt;BR /&gt;&lt;BR /&gt;Since you are asking for the last *access* timestamp, the correct Perl solution is this:&lt;BR /&gt;&lt;BR /&gt;# perl -MFile::Find -le 'find(sub{print $File::Find::name if -f $_ &amp;amp;&amp;amp; -A _ &amp;gt;= 4/24},@ARGV)' /path&lt;BR /&gt;&lt;BR /&gt;You can pass multiple '/path' arguments to the script,  The age criteria is based on one day, so 4/24 of one day represents the desired 4-hours.  The files returned by the above represent those whose access time equals or *exceeds* 4-hours.  That is, they have *not* been recently accessed.&lt;BR /&gt;&lt;BR /&gt;Thus Ahsan's copy-and-paste is incorrect.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
    <pubDate>Mon, 18 Aug 2008 10:52:22 GMT</pubDate>
    <dc:creator>James R. Ferguson</dc:creator>
    <dc:date>2008-08-18T10:52:22Z</dc:date>
    <item>
      <title>How do I find Files older than 4 hours in HP UX11.11</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-do-i-find-files-older-than-4-hours-in-hp-ux11-11/m-p/4253735#M678077</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I need the following requirement. &lt;BR /&gt;&lt;BR /&gt;In a directory /tmp/test I need to find any files which are not accessed from the last 4 hours. I dont want to delete any files but need to know the Path of that file.&lt;BR /&gt;&lt;BR /&gt;As per me, in HP find command there is no -mmin option like in LINUX. So - mtime/-atime/-ctime will tell me the days old. But not by time (Here 6 hours. &lt;BR /&gt;&lt;BR /&gt;Could someone help me please???</description>
      <pubDate>Mon, 18 Aug 2008 09:14:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-do-i-find-files-older-than-4-hours-in-hp-ux11-11/m-p/4253735#M678077</guid>
      <dc:creator>Nagu SR</dc:creator>
      <dc:date>2008-08-18T09:14:48Z</dc:date>
    </item>
    <item>
      <title>Re: How do I find Files older than 4 hours in HP UX11.11</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-do-i-find-files-older-than-4-hours-in-hp-ux11-11/m-p/4253736#M678078</link>
      <description>Use touch to create a reference file with the desired timestamp, then use find's -newer option - or ! -newer.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Mon, 18 Aug 2008 09:32:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-do-i-find-files-older-than-4-hours-in-hp-ux11-11/m-p/4253736#M678078</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2008-08-18T09:32:42Z</dc:date>
    </item>
    <item>
      <title>Re: How do I find Files older than 4 hours in HP UX11.11</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-do-i-find-files-older-than-4-hours-in-hp-ux11-11/m-p/4253737#M678079</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Could you elaborate please....&lt;BR /&gt;&lt;BR /&gt;In /tmp/test I need to find the files which are 4 hours old and need to know the path of the file. I dont want to change the time stamp of the file or I dont want to delete it also.&lt;BR /&gt;&lt;BR /&gt;I just need those File names.(Path)</description>
      <pubDate>Mon, 18 Aug 2008 09:36:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-do-i-find-files-older-than-4-hours-in-hp-ux11-11/m-p/4253737#M678079</guid>
      <dc:creator>Nagu SR</dc:creator>
      <dc:date>2008-08-18T09:36:55Z</dc:date>
    </item>
    <item>
      <title>Re: How do I find Files older than 4 hours in HP UX11.11</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-do-i-find-files-older-than-4-hours-in-hp-ux11-11/m-p/4253738#M678080</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;Try this&lt;BR /&gt;&lt;BR /&gt;# find  /tmp/test ! -atime -4&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;&lt;BR /&gt;-Santosh</description>
      <pubDate>Mon, 18 Aug 2008 09:45:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-do-i-find-files-older-than-4-hours-in-hp-ux11-11/m-p/4253738#M678080</guid>
      <dc:creator>SANTOSH S. MHASKAR</dc:creator>
      <dc:date>2008-08-18T09:45:54Z</dc:date>
    </item>
    <item>
      <title>Re: How do I find Files older than 4 hours in HP UX11.11</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-do-i-find-files-older-than-4-hours-in-hp-ux11-11/m-p/4253739#M678081</link>
      <description>you can use perl for find your requirement&lt;BR /&gt;&lt;BR /&gt;#perl -MFile::Find -le 'find(sub{print $File::Find::name if -f $_ &amp;amp;&amp;amp; -M _ &amp;lt;= 4/24},@ARGV)' /path</description>
      <pubDate>Mon, 18 Aug 2008 09:49:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-do-i-find-files-older-than-4-hours-in-hp-ux11-11/m-p/4253739#M678081</guid>
      <dc:creator>Jeeshan</dc:creator>
      <dc:date>2008-08-18T09:49:32Z</dc:date>
    </item>
    <item>
      <title>Re: How do I find Files older than 4 hours in HP UX11.11</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-do-i-find-files-older-than-4-hours-in-hp-ux11-11/m-p/4253740#M678082</link>
      <description>&lt;A href="http://forums12.itrc.hp.com/service/forums/questionanswer.do?admit=109447627+1219058171506+28353475&amp;amp;threadId=746698" target="_blank"&gt;http://forums12.itrc.hp.com/service/forums/questionanswer.do?admit=109447627+1219058171506+28353475&amp;amp;threadId=746698&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://forums12.itrc.hp.com/service/forums/questionanswer.do?admit=109447627+1219058267499+28353475&amp;amp;threadId=127163" target="_blank"&gt;http://forums12.itrc.hp.com/service/forums/questionanswer.do?admit=109447627+1219058267499+28353475&amp;amp;threadId=127163&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Mon, 18 Aug 2008 10:19:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-do-i-find-files-older-than-4-hours-in-hp-ux11-11/m-p/4253740#M678082</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2008-08-18T10:19:22Z</dc:date>
    </item>
    <item>
      <title>Re: How do I find Files older than 4 hours in HP UX11.11</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-do-i-find-files-older-than-4-hours-in-hp-ux11-11/m-p/4253741#M678083</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;Since you are asking for the last *access* timestamp, the correct Perl solution is this:&lt;BR /&gt;&lt;BR /&gt;# perl -MFile::Find -le 'find(sub{print $File::Find::name if -f $_ &amp;amp;&amp;amp; -A _ &amp;gt;= 4/24},@ARGV)' /path&lt;BR /&gt;&lt;BR /&gt;You can pass multiple '/path' arguments to the script,  The age criteria is based on one day, so 4/24 of one day represents the desired 4-hours.  The files returned by the above represent those whose access time equals or *exceeds* 4-hours.  That is, they have *not* been recently accessed.&lt;BR /&gt;&lt;BR /&gt;Thus Ahsan's copy-and-paste is incorrect.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Mon, 18 Aug 2008 10:52:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-do-i-find-files-older-than-4-hours-in-hp-ux11-11/m-p/4253741#M678083</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2008-08-18T10:52:22Z</dc:date>
    </item>
    <item>
      <title>Re: How do I find Files older than 4 hours in HP UX11.11</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-do-i-find-files-older-than-4-hours-in-hp-ux11-11/m-p/4253742#M678084</link>
      <description>&amp;gt; [...] in HP find command there is no -mmin&lt;BR /&gt;&amp;gt; option like in LINUX.&lt;BR /&gt;&lt;BR /&gt;If you really like the "find" in GNU/Linux,&lt;BR /&gt;you could try (building and) using that&lt;BR /&gt;"find" on HP-UX. The source code is&lt;BR /&gt;available:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.gnu.org/software/findutils/" target="_blank"&gt;http://www.gnu.org/software/findutils/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;By the way, "-mmin" is for the _modified_&lt;BR /&gt;date-time.  "-amin" is for the _accessed_&lt;BR /&gt;date-time.  You want which one?</description>
      <pubDate>Mon, 18 Aug 2008 13:49:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-do-i-find-files-older-than-4-hours-in-hp-ux11-11/m-p/4253742#M678084</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2008-08-18T13:49:38Z</dc:date>
    </item>
    <item>
      <title>Re: How do I find Files older than 4 hours in HP UX11.11</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-do-i-find-files-older-than-4-hours-in-hp-ux11-11/m-p/4253743#M678085</link>
      <description>Nagu,&lt;BR /&gt;&lt;BR /&gt;something like this could be useful&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;# touch -amt 200808181000 /tmp/ref1&lt;BR /&gt;# touch -amt 200808181400 /tmp/ref2&lt;BR /&gt;&lt;BR /&gt;# find /opt/mtmc/ibs/import/reject -xdev -type f -newer /tmp/ref1 -a ! -newer /tmp/ref2 -exec rm {} \+&lt;BR /&gt;&lt;BR /&gt;This will remove files that are newer (more recently modified) than 10:00AM AND NOT newer than 2:00 PM. Make sense? You can change the comand as needed to put the output into a file or directory or remove (as above).&lt;BR /&gt;</description>
      <pubDate>Mon, 18 Aug 2008 14:14:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-do-i-find-files-older-than-4-hours-in-hp-ux11-11/m-p/4253743#M678085</guid>
      <dc:creator>Adam W.</dc:creator>
      <dc:date>2008-08-18T14:14:06Z</dc:date>
    </item>
  </channel>
</rss>

