<?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: find with -mtime in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/find-with-mtime/m-p/5226075#M650856</link>
    <description>Try this:&lt;BR /&gt;&lt;BR /&gt;find /usr2/p -mtime -1 -type f -exec ll {}+</description>
    <pubDate>Fri, 19 Feb 2010 22:18:21 GMT</pubDate>
    <dc:creator>Patrick Wallek</dc:creator>
    <dc:date>2010-02-19T22:18:21Z</dc:date>
    <item>
      <title>find with -mtime</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-with-mtime/m-p/5226073#M650854</link>
      <description>I've gone through past threads and don't find what I'm experiencing (which is really confusing to me).&lt;BR /&gt;&lt;BR /&gt;I want to see all files modified in the past 24 hours in the directory /usr2/p.&lt;BR /&gt;When I use: &lt;BR /&gt;find /usr2/p -mtime 0 -exec ll {} ';'&lt;BR /&gt;I get every file in the directory.&lt;BR /&gt;&lt;BR /&gt;When I use:&lt;BR /&gt;find /usr2/p -mtime 1 -exec ll {} ';'&lt;BR /&gt;I get files modified between 48 hours ago and 24 hours ago, not within the past 24 hours.&lt;BR /&gt;&lt;BR /&gt;Here's the machine I'm doing this on:&lt;BR /&gt;HP-UX fki B.11.11 U 9000/800&lt;BR /&gt;&lt;BR /&gt;Help would be really appreciated; points will be awarded!&lt;BR /&gt;Thanks!</description>
      <pubDate>Fri, 19 Feb 2010 21:57:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-with-mtime/m-p/5226073#M650854</guid>
      <dc:creator>Brad Marks</dc:creator>
      <dc:date>2010-02-19T21:57:56Z</dc:date>
    </item>
    <item>
      <title>Re: find with -mtime</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-with-mtime/m-p/5226074#M650855</link>
      <description>Hi Brad:&lt;BR /&gt;&lt;BR /&gt;First, confine your search to *files* so you can examine the real candidates and not the contents of a directory that matched the time criteria:&lt;BR /&gt;&lt;BR /&gt;# find /usr2/p -type f -mtime 0 -exec ls -l {} +&lt;BR /&gt;&lt;BR /&gt;Not only did I add '-type f' but I terminated the '-exec' with a '+" character.  This is much more efficient than using the semicolon.  Multiple arguments are bundled and passed to the process to be 'exec'ed akin to using a pipe and 'xargs'.  Your processor will love you.&lt;BR /&gt;&lt;BR /&gt;As for the treatment by 'find()' of '-mtime 1' see Dennis's commentary in this thread:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1271016" target="_blank"&gt;http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1271016&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Fri, 19 Feb 2010 22:09:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-with-mtime/m-p/5226074#M650855</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2010-02-19T22:09:44Z</dc:date>
    </item>
    <item>
      <title>Re: find with -mtime</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-with-mtime/m-p/5226075#M650856</link>
      <description>Try this:&lt;BR /&gt;&lt;BR /&gt;find /usr2/p -mtime -1 -type f -exec ll {}+</description>
      <pubDate>Fri, 19 Feb 2010 22:18:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-with-mtime/m-p/5226075#M650856</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2010-02-19T22:18:21Z</dc:date>
    </item>
    <item>
      <title>Re: find with -mtime</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-with-mtime/m-p/5226076#M650857</link>
      <description>Without the -type f, /usr2/p itself was found, then the ll {} caused all of /usr2/p to be listed. After the entirety of /usr2/p is listed, then the qualifying files in /usr2/p were listed.&lt;BR /&gt;Whew!&lt;BR /&gt;&lt;BR /&gt;Thanks, James</description>
      <pubDate>Fri, 19 Feb 2010 22:19:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-with-mtime/m-p/5226076#M650857</guid>
      <dc:creator>Brad Marks</dc:creator>
      <dc:date>2010-02-19T22:19:38Z</dc:date>
    </item>
    <item>
      <title>Re: find with -mtime</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-with-mtime/m-p/5226077#M650858</link>
      <description>&amp;gt;Without the -type f, /usr2/p itself was found, then the ll {}&lt;BR /&gt;&lt;BR /&gt;If you want to see directories, you can use "ll -d" so their content isn't listed.</description>
      <pubDate>Sat, 20 Feb 2010 02:15:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-with-mtime/m-p/5226077#M650858</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2010-02-20T02:15:20Z</dc:date>
    </item>
  </channel>
</rss>

