<?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 and -prune in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/find-command-and-prune/m-p/6727859#M497035</link>
    <description>&lt;P&gt;&amp;gt;Why not just do: find / -fsonly vxfs -name FILENAME&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That won't exclude those two directory paths.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;gt;Turns out you don't need -prune.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-prune is needed so you don't keep finding (and excluding) files under the highest directory possible.&lt;/P&gt;</description>
    <pubDate>Tue, 31 Mar 2015 16:25:13 GMT</pubDate>
    <dc:creator>Dennis Handly</dc:creator>
    <dc:date>2015-03-31T16:25:13Z</dc:date>
    <item>
      <title>find command and prune</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-command-and-prune/m-p/3756884#M497025</link>
      <description>&lt;P&gt;This is on hp-ux 11.0&lt;BR /&gt;&lt;BR /&gt;I need to run find and exclude NFS, CDFS as well as a few directories. I have the following command but it does not exclude dir1 nor dir2, why is that? &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;find / \( -fstype nfs -o -fstype cdfs -o -path /dir1 -o -path /dir2 \) -prune -print&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;P.S. This thread has been moved&amp;nbsp;from HP-UX &amp;gt; System Administration to HP-UX &amp;gt; Languages. - Hp Forum Moderator&lt;/P&gt;</description>
      <pubDate>Tue, 31 Mar 2015 03:11:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-command-and-prune/m-p/3756884#M497025</guid>
      <dc:creator>dictum9</dc:creator>
      <dc:date>2015-03-31T03:11:55Z</dc:date>
    </item>
    <item>
      <title>Re: find command and prune</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-command-and-prune/m-p/3756885#M497026</link>
      <description>Try -name rather than -path.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Wed, 22 Mar 2006 14:12:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-command-and-prune/m-p/3756885#M497026</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2006-03-22T14:12:49Z</dc:date>
    </item>
    <item>
      <title>Re: find command and prune</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-command-and-prune/m-p/3756886#M497027</link>
      <description>The way that's written, it's ONLY going to find those things.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 22 Mar 2006 14:16:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-command-and-prune/m-p/3756886#M497027</guid>
      <dc:creator>Kent Ostby</dc:creator>
      <dc:date>2006-03-22T14:16:17Z</dc:date>
    </item>
    <item>
      <title>Re: find command and prune</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-command-and-prune/m-p/3756887#M497028</link>
      <description>Sorry that last line was terrible grammer.&lt;BR /&gt;&lt;BR /&gt;The way that's written, it's only going to find those paths.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 22 Mar 2006 14:17:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-command-and-prune/m-p/3756887#M497028</guid>
      <dc:creator>Kent Ostby</dc:creator>
      <dc:date>2006-03-22T14:17:11Z</dc:date>
    </item>
    <item>
      <title>Re: find command and prune</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-command-and-prune/m-p/3756888#M497029</link>
      <description>I have the following and it still does not work, meaning it still find directories /dir1 and /dir2. &lt;BR /&gt;What can be done to fix it? &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;find / ! \( -fstype nfs -o -fstype cdfs -o -name /dir1 -o -name /dir2 \) -print&lt;BR /&gt;</description>
      <pubDate>Wed, 22 Mar 2006 14:56:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-command-and-prune/m-p/3756888#M497029</guid>
      <dc:creator>dictum9</dc:creator>
      <dc:date>2006-03-22T14:56:32Z</dc:date>
    </item>
    <item>
      <title>Re: find command and prune</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-command-and-prune/m-p/3756889#M497030</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;prune does not exclude, try the not operator instead, e.g.:&lt;BR /&gt;&lt;BR /&gt;# find / -type f \( ! -fstype nfs ! -fstype cdfs ! -path "/dir1/*" ! -path "/dir2/*" \)&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;John K.&lt;BR /&gt;</description>
      <pubDate>Wed, 22 Mar 2006 15:04:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-command-and-prune/m-p/3756889#M497030</guid>
      <dc:creator>john korterman</dc:creator>
      <dc:date>2006-03-22T15:04:33Z</dc:date>
    </item>
    <item>
      <title>Re: find command and prune</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-command-and-prune/m-p/3756890#M497031</link>
      <description>Try-&lt;BR /&gt;find / ! \( -fstype nfs -o -fstype cdfs -o -path "/dir1/*" -o -path "/dir2/*" \) -print&lt;BR /&gt; &lt;BR /&gt;HTH&lt;BR /&gt; &lt;BR /&gt;Rod Hills&lt;BR /&gt;</description>
      <pubDate>Wed, 22 Mar 2006 15:34:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-command-and-prune/m-p/3756890#M497031</guid>
      <dc:creator>Rodney Hills</dc:creator>
      <dc:date>2006-03-22T15:34:28Z</dc:date>
    </item>
    <item>
      <title>Re: find command and prune</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-command-and-prune/m-p/3756891#M497032</link>
      <description>Actually, I think this should work better-&lt;BR /&gt;find / \( -fstype nfs -o -fstype cdfs -o -path /dir1 -o -path /dir2 \) -prune -o -print &lt;BR /&gt; &lt;BR /&gt;Same as what you had before, only put "-o" between -prune and -print.&lt;BR /&gt; &lt;BR /&gt;HTH&lt;BR /&gt; &lt;BR /&gt;-- Rod Hills</description>
      <pubDate>Wed, 22 Mar 2006 16:35:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-command-and-prune/m-p/3756891#M497032</guid>
      <dc:creator>Rodney Hills</dc:creator>
      <dc:date>2006-03-22T16:35:27Z</dc:date>
    </item>
    <item>
      <title>Re: find command and prune</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-command-and-prune/m-p/3756892#M497033</link>
      <description>find / ! \( -fstype nfs -o -fstype cdfs -o -path "/dir1/*" -o -path "/dir2/*" \) -print &lt;BR /&gt;&lt;BR /&gt;This one worked, thank you. Turns out you don't need prune. Still a mystery to me why prune didn't work.</description>
      <pubDate>Thu, 23 Mar 2006 09:33:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-command-and-prune/m-p/3756892#M497033</guid>
      <dc:creator>dictum9</dc:creator>
      <dc:date>2006-03-23T09:33:19Z</dc:date>
    </item>
    <item>
      <title>Re: find command and prune</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-command-and-prune/m-p/6726363#M497034</link>
      <description>&lt;P&gt;Why not just do:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;find / -fsonly vxfs -name FILENAME&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Rgds...Geoff&lt;/P&gt;</description>
      <pubDate>Fri, 27 Mar 2015 19:05:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-command-and-prune/m-p/6726363#M497034</guid>
      <dc:creator>Geoff Wild</dc:creator>
      <dc:date>2015-03-27T19:05:36Z</dc:date>
    </item>
    <item>
      <title>Re: find command and -prune</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-command-and-prune/m-p/6727859#M497035</link>
      <description>&lt;P&gt;&amp;gt;Why not just do: find / -fsonly vxfs -name FILENAME&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That won't exclude those two directory paths.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;gt;Turns out you don't need -prune.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-prune is needed so you don't keep finding (and excluding) files under the highest directory possible.&lt;/P&gt;</description>
      <pubDate>Tue, 31 Mar 2015 16:25:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-command-and-prune/m-p/6727859#M497035</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2015-03-31T16:25:13Z</dc:date>
    </item>
  </channel>
</rss>

