<?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 The find command in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/the-find-command/m-p/2816916#M2635</link>
    <description>As an HP-UX user, to exclude a number of subdirectories I always used the "! ... -only" format, eg &lt;BR /&gt;&lt;BR /&gt;"find / ! -path /user1 ! -path /user2 -only". &lt;BR /&gt;&lt;BR /&gt;In Linux, this does not work. Instead I have tried to user the "-prune -or -print" format, but cannot successfully exclude more than one subdirectory, eg&lt;BR /&gt;&lt;BR /&gt;"find / -path /user1 -prune -path /user2 -prune -or -print"&lt;BR /&gt;&lt;BR /&gt;I feel I am not even close! Anyone got any ideas?</description>
    <pubDate>Tue, 01 Oct 2002 16:39:47 GMT</pubDate>
    <dc:creator>Desiree Michael_1</dc:creator>
    <dc:date>2002-10-01T16:39:47Z</dc:date>
    <item>
      <title>The find command</title>
      <link>https://community.hpe.com/t5/operating-system-linux/the-find-command/m-p/2816916#M2635</link>
      <description>As an HP-UX user, to exclude a number of subdirectories I always used the "! ... -only" format, eg &lt;BR /&gt;&lt;BR /&gt;"find / ! -path /user1 ! -path /user2 -only". &lt;BR /&gt;&lt;BR /&gt;In Linux, this does not work. Instead I have tried to user the "-prune -or -print" format, but cannot successfully exclude more than one subdirectory, eg&lt;BR /&gt;&lt;BR /&gt;"find / -path /user1 -prune -path /user2 -prune -or -print"&lt;BR /&gt;&lt;BR /&gt;I feel I am not even close! Anyone got any ideas?</description>
      <pubDate>Tue, 01 Oct 2002 16:39:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/the-find-command/m-p/2816916#M2635</guid>
      <dc:creator>Desiree Michael_1</dc:creator>
      <dc:date>2002-10-01T16:39:47Z</dc:date>
    </item>
    <item>
      <title>Re: The find command</title>
      <link>https://community.hpe.com/t5/operating-system-linux/the-find-command/m-p/2816917#M2636</link>
      <description>Hi Desiree,&lt;BR /&gt;This is not a real answer to your question, but might help you:&lt;BR /&gt;&lt;BR /&gt;I let cron everynight perform a find / &amp;gt; /tmp/filelist &lt;BR /&gt;So I have a list of all files on my system. If I want to find a file, I just grep this filelist. This goes much faster than checking the hole tree. with grep -v , you can exclude some dirs.&lt;BR /&gt;&lt;BR /&gt;I do f.i. cat /tmp/filelist | grep wanted_file | grep -v /bin | grep -v /usr/bin&lt;BR /&gt;&lt;BR /&gt;Actioaly I made an alias findx, which is the first part of the example.&lt;BR /&gt;&lt;BR /&gt;Hope this is some help&lt;BR /&gt;Donald  &lt;BR /&gt;</description>
      <pubDate>Tue, 01 Oct 2002 17:06:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/the-find-command/m-p/2816917#M2636</guid>
      <dc:creator>Donald Kok</dc:creator>
      <dc:date>2002-10-01T17:06:48Z</dc:date>
    </item>
    <item>
      <title>Re: The find command</title>
      <link>https://community.hpe.com/t5/operating-system-linux/the-find-command/m-p/2816918#M2637</link>
      <description>find / \( -path /user1 -prune -o -path /user2 -prune \) -o -print&lt;BR /&gt;&lt;BR /&gt;should do the trick..</description>
      <pubDate>Tue, 01 Oct 2002 22:41:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/the-find-command/m-p/2816918#M2637</guid>
      <dc:creator>Stuart Browne</dc:creator>
      <dc:date>2002-10-01T22:41:46Z</dc:date>
    </item>
    <item>
      <title>Re: The find command</title>
      <link>https://community.hpe.com/t5/operating-system-linux/the-find-command/m-p/2816919#M2638</link>
      <description>Thanks Stuart,&lt;BR /&gt;&lt;BR /&gt;That did do the trick! Very helpful, thanks.&lt;BR /&gt;&lt;BR /&gt;And thanks Donald, I may additionally use your idea.&lt;BR /&gt;&lt;BR /&gt;This is the first time I have used this Linux forum, and I am very pleased with the quality of the posted responses. I expect you will be hearing more from me in the future!&lt;BR /&gt;&lt;BR /&gt;Desiree&lt;BR /&gt;</description>
      <pubDate>Wed, 02 Oct 2002 10:09:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/the-find-command/m-p/2816919#M2638</guid>
      <dc:creator>Desiree Michael_1</dc:creator>
      <dc:date>2002-10-02T10:09:45Z</dc:date>
    </item>
    <item>
      <title>Re: The find command</title>
      <link>https://community.hpe.com/t5/operating-system-linux/the-find-command/m-p/2816920#M2639</link>
      <description>Hi,&lt;BR /&gt;If what you want this is to locate files, there exists an utility called locate/slocate on  most standard linux boxes which does the trick for you.&lt;BR /&gt;&lt;BR /&gt;man locate for more details.&lt;BR /&gt;&lt;BR /&gt;-balaji</description>
      <pubDate>Thu, 03 Oct 2002 03:16:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/the-find-command/m-p/2816920#M2639</guid>
      <dc:creator>Balaji N</dc:creator>
      <dc:date>2002-10-03T03:16:39Z</dc:date>
    </item>
  </channel>
</rss>

