<?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: About the &amp;quot;find&amp;quot; comand in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/about-the-quot-find-quot-comand/m-p/3459139#M209784</link>
    <description>I'm afraid, the HP-UX find is a pretty basic version of find with few features.&lt;BR /&gt;Therefore if you stick to this find you will have to "-prune" all directories that need to be excluded, which can really get a bit of a pain (i.e. lots of logical operands and ugly brackets).&lt;BR /&gt;The only little alleviation would be to maybe restrict the serach to the filesystem, and using -xdev to prevent crossing of filesystems (but this doesn't improve anything in your case) &lt;BR /&gt; &lt;BR /&gt;To make your job easier I'd suggest you install the GNU find on your HP-UX box.&lt;BR /&gt;This find offers apart from many more other features an option -maxdepth where you can restrict the search depth (not to be mixed up with the -depth option!)&lt;BR /&gt; &lt;BR /&gt;&lt;A href="http://www.gnu.org/software/findutils/manual/html_mono/find.html" target="_blank"&gt;http://www.gnu.org/software/findutils/manual/html_mono/find.html&lt;/A&gt;&lt;BR /&gt; &lt;BR /&gt;Lust but not least you could use Perl and File::Find which offers you the biggest flexibilty in searching for files easily.&lt;BR /&gt; &lt;BR /&gt;&lt;A href="http://search.cpan.org/search?query=File%3A%3AFind&amp;amp;mode=all" target="_blank"&gt;http://search.cpan.org/search?query=File%3A%3AFind&amp;amp;mode=all&lt;/A&gt;</description>
    <pubDate>Mon, 10 Jan 2005 05:49:57 GMT</pubDate>
    <dc:creator>Ralph Grothe</dc:creator>
    <dc:date>2005-01-10T05:49:57Z</dc:date>
    <item>
      <title>About the "find" comand</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/about-the-quot-find-quot-comand/m-p/3459136#M209781</link>
      <description>I want to use the below "find" command to search the files, this statement will search all the files under /tmp includes subdirecties , how to make it only the files under /tmp but exclude its subdirecties  ? thx&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;find /tmp -mtime +10 -exec ls -lt {} \;</description>
      <pubDate>Mon, 10 Jan 2005 03:38:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/about-the-quot-find-quot-comand/m-p/3459136#M209781</guid>
      <dc:creator>peterchu</dc:creator>
      <dc:date>2005-01-10T03:38:38Z</dc:date>
    </item>
    <item>
      <title>Re: About the "find" comand</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/about-the-quot-find-quot-comand/m-p/3459137#M209782</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I don't think it is possible in one single find command.&lt;BR /&gt;&lt;BR /&gt;You could use &lt;BR /&gt;find /tmp -mtime +10 -exec ls -lt {} \; | grep -v xxxx | grev -v xxxx&lt;BR /&gt;&lt;BR /&gt;and exclude the subdirectories.&lt;BR /&gt;&lt;BR /&gt;Hope this helps,&lt;BR /&gt;Robert-Jan</description>
      <pubDate>Mon, 10 Jan 2005 03:56:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/about-the-quot-find-quot-comand/m-p/3459137#M209782</guid>
      <dc:creator>Robert-Jan Goossens</dc:creator>
      <dc:date>2005-01-10T03:56:35Z</dc:date>
    </item>
    <item>
      <title>Re: About the "find" comand</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/about-the-quot-find-quot-comand/m-p/3459138#M209783</link>
      <description>Can you try using -prune option of find command (for example):&lt;BR /&gt;&lt;BR /&gt;$find /var/home/sks -name big -o -type d -prune&lt;BR /&gt;&lt;BR /&gt;Also refer the link:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.grymoire.com/Unix/Find.html" target="_blank"&gt;http://www.grymoire.com/Unix/Find.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;sks</description>
      <pubDate>Mon, 10 Jan 2005 04:34:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/about-the-quot-find-quot-comand/m-p/3459138#M209783</guid>
      <dc:creator>Sanjay Kumar Suri</dc:creator>
      <dc:date>2005-01-10T04:34:43Z</dc:date>
    </item>
    <item>
      <title>Re: About the "find" comand</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/about-the-quot-find-quot-comand/m-p/3459139#M209784</link>
      <description>I'm afraid, the HP-UX find is a pretty basic version of find with few features.&lt;BR /&gt;Therefore if you stick to this find you will have to "-prune" all directories that need to be excluded, which can really get a bit of a pain (i.e. lots of logical operands and ugly brackets).&lt;BR /&gt;The only little alleviation would be to maybe restrict the serach to the filesystem, and using -xdev to prevent crossing of filesystems (but this doesn't improve anything in your case) &lt;BR /&gt; &lt;BR /&gt;To make your job easier I'd suggest you install the GNU find on your HP-UX box.&lt;BR /&gt;This find offers apart from many more other features an option -maxdepth where you can restrict the search depth (not to be mixed up with the -depth option!)&lt;BR /&gt; &lt;BR /&gt;&lt;A href="http://www.gnu.org/software/findutils/manual/html_mono/find.html" target="_blank"&gt;http://www.gnu.org/software/findutils/manual/html_mono/find.html&lt;/A&gt;&lt;BR /&gt; &lt;BR /&gt;Lust but not least you could use Perl and File::Find which offers you the biggest flexibilty in searching for files easily.&lt;BR /&gt; &lt;BR /&gt;&lt;A href="http://search.cpan.org/search?query=File%3A%3AFind&amp;amp;mode=all" target="_blank"&gt;http://search.cpan.org/search?query=File%3A%3AFind&amp;amp;mode=all&lt;/A&gt;</description>
      <pubDate>Mon, 10 Jan 2005 05:49:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/about-the-quot-find-quot-comand/m-p/3459139#M209784</guid>
      <dc:creator>Ralph Grothe</dc:creator>
      <dc:date>2005-01-10T05:49:57Z</dc:date>
    </item>
    <item>
      <title>Re: About the "find" comand</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/about-the-quot-find-quot-comand/m-p/3459140#M209785</link>
      <description>You can use -type -f option.&lt;BR /&gt;&lt;BR /&gt;find /tmp -mtime +10 -type f -exec ls -lt {}\;&lt;BR /&gt;&lt;BR /&gt;you can also include -xdev option to search files only in the particular mount point.</description>
      <pubDate>Mon, 10 Jan 2005 05:59:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/about-the-quot-find-quot-comand/m-p/3459140#M209785</guid>
      <dc:creator>bhoopathi_1</dc:creator>
      <dc:date>2005-01-10T05:59:17Z</dc:date>
    </item>
    <item>
      <title>Re: About the "find" comand</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/about-the-quot-find-quot-comand/m-p/3459141#M209786</link>
      <description>Sanjay gave a link to grymoire.  Atthe end they mention "Fast Find", which seems to be a patch to find that lets it search a database first.&lt;BR /&gt;&lt;BR /&gt;I've been using something similiar for a few years:  at midnight, my crontab runs a script that calls find:&lt;BR /&gt;&lt;BR /&gt;find /home/zorn -type f -exec ll -o {} \; &amp;gt; /home/zorn/Zfiles&lt;BR /&gt;&lt;BR /&gt;When I need to find a file, I just grep Zfiles.&lt;BR /&gt;&lt;BR /&gt;You could easily have this run off /home.&lt;BR /&gt;&lt;BR /&gt;For finding system files, I use&lt;BR /&gt;&lt;BR /&gt;find /bin /etc /lib /opt /sbin /usr /var -type f -name $1 -exec ll {} \;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 11 Jan 2005 13:37:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/about-the-quot-find-quot-comand/m-p/3459141#M209786</guid>
      <dc:creator>Michael D. Zorn</dc:creator>
      <dc:date>2005-01-11T13:37:03Z</dc:date>
    </item>
    <item>
      <title>Re: About the "find" comand</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/about-the-quot-find-quot-comand/m-p/3459142#M209787</link>
      <description>&lt;BR /&gt;How about a....&lt;BR /&gt;&lt;BR /&gt;find /tmp/* -prune -mtime +10 -exec ls -lt {} \;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Hein.&lt;BR /&gt;</description>
      <pubDate>Tue, 11 Jan 2005 14:17:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/about-the-quot-find-quot-comand/m-p/3459142#M209787</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2005-01-11T14:17:41Z</dc:date>
    </item>
    <item>
      <title>Re: About the "find" comand</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/about-the-quot-find-quot-comand/m-p/3459143#M209788</link>
      <description>gnu "find" is more flexible, but you can use the "path" option with the Hpux supplied "find" to get only one level-&lt;BR /&gt; &lt;BR /&gt;find /tmp -type f -path "/tmp/*" -prune -print&lt;BR /&gt; &lt;BR /&gt;HTH&lt;BR /&gt; &lt;BR /&gt;-- Rod Hills</description>
      <pubDate>Tue, 11 Jan 2005 14:28:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/about-the-quot-find-quot-comand/m-p/3459143#M209788</guid>
      <dc:creator>Rodney Hills</dc:creator>
      <dc:date>2005-01-11T14:28:36Z</dc:date>
    </item>
    <item>
      <title>Re: About the "find" comand</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/about-the-quot-find-quot-comand/m-p/3459144#M209789</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;try "-only" option with find,&lt;BR /&gt;&lt;BR /&gt;find /tmp -only -mtime +10 -exec ls -lt {} \;&lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;BR /&gt;&lt;BR /&gt;Regds&lt;BR /&gt;</description>
      <pubDate>Tue, 11 Jan 2005 14:35:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/about-the-quot-find-quot-comand/m-p/3459144#M209789</guid>
      <dc:creator>Sanjay_6</dc:creator>
      <dc:date>2005-01-11T14:35:21Z</dc:date>
    </item>
    <item>
      <title>Re: About the "find" comand</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/about-the-quot-find-quot-comand/m-p/3459145#M209790</link>
      <description>You can reward the many people who have assisted you by assigning points to their posts.&lt;BR /&gt;&lt;BR /&gt;For steps how to assign points see:&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/helptips.do?#33" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/helptips.do?#33&lt;/A&gt;</description>
      <pubDate>Thu, 13 Jan 2005 06:59:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/about-the-quot-find-quot-comand/m-p/3459145#M209790</guid>
      <dc:creator>Cheryl Griffin</dc:creator>
      <dc:date>2005-01-13T06:59:24Z</dc:date>
    </item>
  </channel>
</rss>

