<?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/2743189#M68199</link>
    <description>First, I would not do a find from / because that is a huge resource hog but you should be able to do something like this:&lt;BR /&gt;&lt;BR /&gt;find . ! \( -path './adm*' -o -path './TT_DB* \)&lt;BR /&gt;&lt;BR /&gt;This would exclude the ./adm directory and the&lt;BR /&gt;./TT_DB directory.&lt;BR /&gt;&lt;BR /&gt;Man find for details.&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Wed, 12 Jun 2002 16:06:26 GMT</pubDate>
    <dc:creator>A. Clay Stephenson</dc:creator>
    <dc:date>2002-06-12T16:06:26Z</dc:date>
    <item>
      <title>find command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-command/m-p/2743188#M68198</link>
      <description>how can I use the find the command to search the entire server but exclude the search in two directories.  These two directories have temporary, output, and log files that I do not want included in the search results.&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
      <pubDate>Wed, 12 Jun 2002 15:54:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-command/m-p/2743188#M68198</guid>
      <dc:creator>alana duvall_1</dc:creator>
      <dc:date>2002-06-12T15:54:49Z</dc:date>
    </item>
    <item>
      <title>Re: find command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-command/m-p/2743189#M68199</link>
      <description>First, I would not do a find from / because that is a huge resource hog but you should be able to do something like this:&lt;BR /&gt;&lt;BR /&gt;find . ! \( -path './adm*' -o -path './TT_DB* \)&lt;BR /&gt;&lt;BR /&gt;This would exclude the ./adm directory and the&lt;BR /&gt;./TT_DB directory.&lt;BR /&gt;&lt;BR /&gt;Man find for details.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 12 Jun 2002 16:06:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-command/m-p/2743189#M68199</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2002-06-12T16:06:26Z</dc:date>
    </item>
    <item>
      <title>Re: find command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-command/m-p/2743190#M68200</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;Consider this example, which searches /tmp but does not descend the /tmp/dummy directory:&lt;BR /&gt;&lt;BR /&gt;# find /tmp \( -name "f*" -a ! -path "/tmp/dummy/*" \)&lt;BR /&gt;&lt;BR /&gt;This will return all files in '/tmp/' but *not* 'tmp/dummy/' that begin with the letter "f".  Note the quotes so that the shell doesn't expand the expresssion.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Wed, 12 Jun 2002 16:11:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-command/m-p/2743190#M68200</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2002-06-12T16:11:12Z</dc:date>
    </item>
    <item>
      <title>Re: find command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-command/m-p/2743191#M68201</link>
      <description>As noted by others, the find command from / is a resource monster.  In order to search the entire server for files name *foo* I recommend:&lt;BR /&gt;&lt;BR /&gt;du -a / | grep -i foo&lt;BR /&gt;&lt;BR /&gt;This is faster, less resource intensive, and has all the power of grep for matching you filename(s).  You can use grep -v to eliminmate your temp and logfile paths, for you can do something like:&lt;BR /&gt;&lt;BR /&gt;for PATH in $(ls / |egrep -v "temp_dir|log_dir")&lt;BR /&gt;do&lt;BR /&gt;   du -a $PATH | grep -i FILENAME&lt;BR /&gt;done</description>
      <pubDate>Wed, 12 Jun 2002 19:06:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-command/m-p/2743191#M68201</guid>
      <dc:creator>Alan Riggs</dc:creator>
      <dc:date>2002-06-12T19:06:27Z</dc:date>
    </item>
    <item>
      <title>Re: find command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-command/m-p/2743192#M68202</link>
      <description>find is so bad that I wrapper the command to check if / has been specified and issue a very nasty message for users that try this on a production machine. Files are not often 'lost' and application programs are not scattered all over the system. &lt;BR /&gt;&lt;BR /&gt;For instance, why look for core files to purge when you can prevent them completely with ulimit -c 0? And if an application was installed but did not document where it was stored, there's no need to look in /stand or /etc or /dev, but instead look in /opt, /usr/contrib/bin and /usr/local/bin using ls, not find.</description>
      <pubDate>Thu, 13 Jun 2002 00:24:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-command/m-p/2743192#M68202</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2002-06-13T00:24:11Z</dc:date>
    </item>
  </channel>
</rss>

