<?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 - Only apply to current directory in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/find-only-apply-to-current-directory/m-p/4914620#M406701</link>
    <description>Combine the -purne flag with -type d&lt;BR /&gt;&lt;BR /&gt;So you will scan only the current directory and not the child ones.</description>
    <pubDate>Wed, 27 Jul 2005 00:31:58 GMT</pubDate>
    <dc:creator>Vibhor Kumar Agarwal</dc:creator>
    <dc:date>2005-07-27T00:31:58Z</dc:date>
    <item>
      <title>Find - Only apply to current directory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-only-apply-to-current-directory/m-p/4914617#M406698</link>
      <description>I need to search for files that are older than a certain amount and then delete them.  How do I prevent find from going into subdirectories and deleting those that match the criteria as well.&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
      <pubDate>Tue, 26 Jul 2005 17:21:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-only-apply-to-current-directory/m-p/4914617#M406698</guid>
      <dc:creator>Radhe Webster</dc:creator>
      <dc:date>2005-07-26T17:21:11Z</dc:date>
    </item>
    <item>
      <title>Re: Find - Only apply to current directory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-only-apply-to-current-directory/m-p/4914618#M406699</link>
      <description>try the -prune flag to skip the subdirectories.</description>
      <pubDate>Tue, 26 Jul 2005 17:26:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-only-apply-to-current-directory/m-p/4914618#M406699</guid>
      <dc:creator>Wilfred Chau_1</dc:creator>
      <dc:date>2005-07-26T17:26:48Z</dc:date>
    </item>
    <item>
      <title>Re: Find - Only apply to current directory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-only-apply-to-current-directory/m-p/4914619#M406700</link>
      <description>&lt;BR /&gt;the -prune switch prevents the find command from travelling down directory trees</description>
      <pubDate>Tue, 26 Jul 2005 17:30:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-only-apply-to-current-directory/m-p/4914619#M406700</guid>
      <dc:creator>Alan Meyer_4</dc:creator>
      <dc:date>2005-07-26T17:30:54Z</dc:date>
    </item>
    <item>
      <title>Re: Find - Only apply to current directory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-only-apply-to-current-directory/m-p/4914620#M406701</link>
      <description>Combine the -purne flag with -type d&lt;BR /&gt;&lt;BR /&gt;So you will scan only the current directory and not the child ones.</description>
      <pubDate>Wed, 27 Jul 2005 00:31:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-only-apply-to-current-directory/m-p/4914620#M406701</guid>
      <dc:creator>Vibhor Kumar Agarwal</dc:creator>
      <dc:date>2005-07-27T00:31:58Z</dc:date>
    </item>
    <item>
      <title>Re: Find - Only apply to current directory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-only-apply-to-current-directory/m-p/4914621#M406702</link>
      <description>You can do it like,&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=45258" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=45258&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;hth.</description>
      <pubDate>Wed, 27 Jul 2005 01:02:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-only-apply-to-current-directory/m-p/4914621#M406702</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2005-07-27T01:02:07Z</dc:date>
    </item>
    <item>
      <title>Re: Find - Only apply to current directory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-only-apply-to-current-directory/m-p/4914622#M406703</link>
      <description>If you want to delete files based on modified time then,&lt;BR /&gt;&lt;BR /&gt;find &lt;DIRECTORY&gt; -path "/&lt;DIRECTORY&gt;/*" -prune -type f -mtine +2 -exec rm -i {} \;&lt;BR /&gt;&lt;BR /&gt;hth.&lt;/DIRECTORY&gt;&lt;/DIRECTORY&gt;</description>
      <pubDate>Wed, 27 Jul 2005 01:05:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-only-apply-to-current-directory/m-p/4914622#M406703</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2005-07-27T01:05:47Z</dc:date>
    </item>
    <item>
      <title>Re: Find - Only apply to current directory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-only-apply-to-current-directory/m-p/4914623#M406704</link>
      <description>Thanks for all the help.</description>
      <pubDate>Wed, 27 Jul 2005 07:58:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-only-apply-to-current-directory/m-p/4914623#M406704</guid>
      <dc:creator>Radhe Webster</dc:creator>
      <dc:date>2005-07-27T07:58:55Z</dc:date>
    </item>
  </channel>
</rss>

