<?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 command in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/find-command/m-p/2705264#M902850</link>
    <description>I missed on switch, -type f, no matter I use -atime -mtime or even -ctime, the output was same, the final command is&lt;BR /&gt;&lt;BR /&gt;find . -type -f -mtime -17 -exec ls -al {} \;&lt;BR /&gt;&lt;BR /&gt;-newer also can work.&lt;BR /&gt;&lt;BR /&gt;Carlos, I like you idea, thanks!&lt;BR /&gt;&lt;BR /&gt;Catherine, thanks a lot!&lt;BR /&gt;&lt;BR /&gt;Thank you, all!&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Wed, 17 Apr 2002 14:46:43 GMT</pubDate>
    <dc:creator>Victor_5</dc:creator>
    <dc:date>2002-04-17T14:46:43Z</dc:date>
    <item>
      <title>find command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-command/m-p/2705253#M902839</link>
      <description>I only want to list the files of April, when I run &lt;BR /&gt;&lt;BR /&gt;find . -atime -17 -exec ls -al {} \;&lt;BR /&gt;&lt;BR /&gt;It returned everything not only April but also Jan. Feb...., what is the correct command to find those files only in April?&lt;BR /&gt;</description>
      <pubDate>Wed, 17 Apr 2002 13:02:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-command/m-p/2705253#M902839</guid>
      <dc:creator>Victor_5</dc:creator>
      <dc:date>2002-04-17T13:02:53Z</dc:date>
    </item>
    <item>
      <title>Re: find command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-command/m-p/2705254#M902840</link>
      <description>Hi Victor:&lt;BR /&gt;&lt;BR /&gt;Use '-mtime' option:&lt;BR /&gt;&lt;BR /&gt;# find . -mtime -17 -exec ls -al {} \; &lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Shiju&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 17 Apr 2002 13:08:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-command/m-p/2705254#M902840</guid>
      <dc:creator>Helen French</dc:creator>
      <dc:date>2002-04-17T13:08:47Z</dc:date>
    </item>
    <item>
      <title>Re: find command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-command/m-p/2705255#M902841</link>
      <description>Hi Victor,&lt;BR /&gt;&lt;BR /&gt;Use reference files and "newer" logic:&lt;BR /&gt;&lt;BR /&gt;touch 03312359 /tmp/Mar&lt;BR /&gt;touch 05010000 /tmp/May&lt;BR /&gt;find . -type f -newer /tmp/Mar -a ! -newer /tmp/May&lt;BR /&gt;&lt;BR /&gt;Darrell&lt;BR /&gt;</description>
      <pubDate>Wed, 17 Apr 2002 13:09:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-command/m-p/2705255#M902841</guid>
      <dc:creator>Darrell Allen</dc:creator>
      <dc:date>2002-04-17T13:09:15Z</dc:date>
    </item>
    <item>
      <title>Re: find command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-command/m-p/2705256#M902842</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;atime means acces time. You should try mtime (file modification time). &lt;BR /&gt;&lt;BR /&gt;HtH,&lt;BR /&gt;&lt;BR /&gt;Mark</description>
      <pubDate>Wed, 17 Apr 2002 13:09:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-command/m-p/2705256#M902842</guid>
      <dc:creator>Mark van Hassel</dc:creator>
      <dc:date>2002-04-17T13:09:33Z</dc:date>
    </item>
    <item>
      <title>Re: find command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-command/m-p/2705257#M902843</link>
      <description>You can do thie .. create a dummy reference file dated April 01 00:01 and use find command to list all files newer than that reference file.&lt;BR /&gt;Eg : in /opt&lt;BR /&gt;&lt;BR /&gt;# cd /opt&lt;BR /&gt;# touch 04010001 ref-file&lt;BR /&gt;# find . -newer ref-file -exec ls -al {} \; &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 17 Apr 2002 13:10:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-command/m-p/2705257#M902843</guid>
      <dc:creator>S.K. Chan</dc:creator>
      <dc:date>2002-04-17T13:10:36Z</dc:date>
    </item>
    <item>
      <title>Re: find command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-command/m-p/2705258#M902844</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;The find command is returning just what you asked. Find all the files that have been ACCESSED (-atime) in the past 17 days butr the ls command is displaying the modification times. It is entirely possible that a file has been recently accessed but last modified months ago. You probably want to use the find -mtime argument instead.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 17 Apr 2002 13:11:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-command/m-p/2705258#M902844</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2002-04-17T13:11:30Z</dc:date>
    </item>
    <item>
      <title>Re: find command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-command/m-p/2705259#M902845</link>
      <description>Hi again,&lt;BR /&gt;&lt;BR /&gt;Should have said that you don't need the "-a ! -newer May" if you are checking for the current month"&lt;BR /&gt;&lt;BR /&gt;find . -type f -newer /tmp/Mar&lt;BR /&gt;&lt;BR /&gt;Darrell</description>
      <pubDate>Wed, 17 Apr 2002 13:12:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-command/m-p/2705259#M902845</guid>
      <dc:creator>Darrell Allen</dc:creator>
      <dc:date>2002-04-17T13:12:48Z</dc:date>
    </item>
    <item>
      <title>Re: find command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-command/m-p/2705260#M902846</link>
      <description>It could also be that you are listing the contents of directories that have been selected by find.&lt;BR /&gt;&lt;BR /&gt;If you are only interested in files then supply '-type f' to find or you could suppress the listing of the contents of directories with 'ls -ald {}'&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;John</description>
      <pubDate>Wed, 17 Apr 2002 13:15:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-command/m-p/2705260#M902846</guid>
      <dc:creator>John Palmer</dc:creator>
      <dc:date>2002-04-17T13:15:39Z</dc:date>
    </item>
    <item>
      <title>Re: find command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-command/m-p/2705261#M902847</link>
      <description>ll -R | grep " Apr "   should be enough.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;There is not reason to do a find followed to ll.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 17 Apr 2002 13:24:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-command/m-p/2705261#M902847</guid>
      <dc:creator>Carlos Fernandez Riera</dc:creator>
      <dc:date>2002-04-17T13:24:09Z</dc:date>
    </item>
    <item>
      <title>Re: find command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-command/m-p/2705262#M902848</link>
      <description>Hi USe,&lt;BR /&gt;&lt;BR /&gt;-mtime instead of -atime.&lt;BR /&gt;&lt;BR /&gt;-atime is for accessed files for a particular period of time. This is the reason you are getting all files in your find result which you run the command.&lt;BR /&gt;&lt;BR /&gt;-pap</description>
      <pubDate>Wed, 17 Apr 2002 13:54:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-command/m-p/2705262#M902848</guid>
      <dc:creator>pap</dc:creator>
      <dc:date>2002-04-17T13:54:32Z</dc:date>
    </item>
    <item>
      <title>Re: find command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-command/m-p/2705263#M902849</link>
      <description>Hi Victor ,&lt;BR /&gt;I think Chan's method can work.&lt;BR /&gt;&lt;BR /&gt;I have a test&lt;BR /&gt;&lt;BR /&gt;You can do thie .. create a dummy reference file dated April 01 00:01 and use find command to list all files newer than that reference file. &lt;BR /&gt;&lt;BR /&gt;#cd /&lt;BR /&gt;# touch 04010001 ref-file &lt;BR /&gt;# find . -newermm ref-file -print&lt;BR /&gt;note m - modified&lt;BR /&gt;or &lt;BR /&gt;#cd /&lt;BR /&gt;# touch 04010001 ref-file &lt;BR /&gt;# find . -newermm ref-file -print&lt;BR /&gt;&lt;BR /&gt;try it &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 17 Apr 2002 13:59:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-command/m-p/2705263#M902849</guid>
      <dc:creator>Catherine_3</dc:creator>
      <dc:date>2002-04-17T13:59:33Z</dc:date>
    </item>
    <item>
      <title>Re: find command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-command/m-p/2705264#M902850</link>
      <description>I missed on switch, -type f, no matter I use -atime -mtime or even -ctime, the output was same, the final command is&lt;BR /&gt;&lt;BR /&gt;find . -type -f -mtime -17 -exec ls -al {} \;&lt;BR /&gt;&lt;BR /&gt;-newer also can work.&lt;BR /&gt;&lt;BR /&gt;Carlos, I like you idea, thanks!&lt;BR /&gt;&lt;BR /&gt;Catherine, thanks a lot!&lt;BR /&gt;&lt;BR /&gt;Thank you, all!&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 17 Apr 2002 14:46:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-command/m-p/2705264#M902850</guid>
      <dc:creator>Victor_5</dc:creator>
      <dc:date>2002-04-17T14:46:43Z</dc:date>
    </item>
  </channel>
</rss>

