<?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 help in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/find-command-help/m-p/5212159#M678680</link>
    <description>Hi (again):&lt;BR /&gt;&lt;BR /&gt;I should add that if you truly want to skip (for example, the '/dev' directory) you could do:&lt;BR /&gt;&lt;BR /&gt;# find / ! -path "/dev/*" \( -nouser -o -nogroup \) -exec ls -ld {} +&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
    <pubDate>Tue, 01 Dec 2009 23:17:58 GMT</pubDate>
    <dc:creator>James R. Ferguson</dc:creator>
    <dc:date>2009-12-01T23:17:58Z</dc:date>
    <item>
      <title>Find command help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-command-help/m-p/5212156#M678677</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;I am using find command to files with unknown UID/GID on HP-UX server. Below is part of the code that I am using:&lt;BR /&gt;&lt;BR /&gt;  case "$OSNAME" in&lt;BR /&gt;    HP-UX) print "Finding unknown files"&lt;BR /&gt;         find / -path "/var/spool/cron/atjobs"   -prune -o  \&lt;BR /&gt;                -path "/dev"                     -prune -o  \&lt;BR /&gt;                \( -fsonly vxfs -o -fsonly hfs \)           \&lt;BR /&gt;                \( -nouser -o -nogroup \) -print | xargs ls -ls&lt;BR /&gt;&lt;BR /&gt;And I am reading the output&lt;BR /&gt;   cat /var/adm/issuance/find.log | mailx -s&lt;BR /&gt;&lt;BR /&gt;The problem is the ls -ld is actually doing the ls -ld on the /var/adm/issuance rather than the find command.&lt;BR /&gt;&lt;BR /&gt;Please help!&lt;BR /&gt;&lt;BR /&gt;Thanks.</description>
      <pubDate>Tue, 01 Dec 2009 20:34:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-command-help/m-p/5212156#M678677</guid>
      <dc:creator>rhansen</dc:creator>
      <dc:date>2009-12-01T20:34:24Z</dc:date>
    </item>
    <item>
      <title>Re: Find command help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-command-help/m-p/5212157#M678678</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;You're making this much harder than it needs to be.  I would simply use:&lt;BR /&gt;&lt;BR /&gt;# find / \( -nouser -o -nogroup \) -exec ls -ld {} +&lt;BR /&gt;&lt;BR /&gt;...since most filesystems are VxFS ones anyway.  If you like, though:&lt;BR /&gt;&lt;BR /&gt;# find / \( -nouser -o -nogroup \) -a \( -fstype vxfs -o -fstype hfs \) -exec ls -ld {} +&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Tue, 01 Dec 2009 20:47:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-command-help/m-p/5212157#M678678</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2009-12-01T20:47:28Z</dc:date>
    </item>
    <item>
      <title>Re: Find command help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-command-help/m-p/5212158#M678679</link>
      <description>Thanks James.</description>
      <pubDate>Tue, 01 Dec 2009 21:13:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-command-help/m-p/5212158#M678679</guid>
      <dc:creator>rhansen</dc:creator>
      <dc:date>2009-12-01T21:13:40Z</dc:date>
    </item>
    <item>
      <title>Re: Find command help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-command-help/m-p/5212159#M678680</link>
      <description>Hi (again):&lt;BR /&gt;&lt;BR /&gt;I should add that if you truly want to skip (for example, the '/dev' directory) you could do:&lt;BR /&gt;&lt;BR /&gt;# find / ! -path "/dev/*" \( -nouser -o -nogroup \) -exec ls -ld {} +&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Tue, 01 Dec 2009 23:17:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-command-help/m-p/5212159#M678680</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2009-12-01T23:17:58Z</dc:date>
    </item>
    <item>
      <title>Re: Find command help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-command-help/m-p/5212160#M678681</link>
      <description>&amp;gt;JRF: I should add that if you truly want to skip you could do:&lt;BR /&gt;find / ! -path "/dev/*"&lt;BR /&gt;&lt;BR /&gt;These are not the droids you are looking for.  :-)&lt;BR /&gt;This doesn't "skip" files but simply doesn't print them.&lt;BR /&gt;&lt;BR /&gt;The correct primary is the hard to understand and poorly documented "-prune", which stops descending the directory tree.&lt;BR /&gt;find / -name /dev -prune -o \( -nouser -o -nogroup \) -exec ls -ld {} +&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1276654" target="_blank"&gt;http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1276654&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1322635" target="_blank"&gt;http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1322635&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1309998" target="_blank"&gt;http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1309998&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1303248" target="_blank"&gt;http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1303248&lt;/A&gt;</description>
      <pubDate>Wed, 02 Dec 2009 03:39:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-command-help/m-p/5212160#M678681</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-12-02T03:39:16Z</dc:date>
    </item>
    <item>
      <title>Re: Find command help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-command-help/m-p/5212161#M678682</link>
      <description>Hi (again):&lt;BR /&gt;&lt;BR /&gt;&amp;gt; Dennis: The correct primary is the hard to understand and poorly documented "-prune", &lt;BR /&gt;&lt;BR /&gt;Yes, that's an understatement :-)&lt;BR /&gt;&lt;BR /&gt;&amp;gt; Dennis: find / -name /dev -prune -o \( -nouser -o -nogroup \) -exec ls -ld {} +&lt;BR /&gt;&lt;BR /&gt;No, this should be a simple, single directory name without leading or embedded slashes:&lt;BR /&gt;&lt;BR /&gt;find / -name dev -prune -o \( -nouser -o -nogroup \) -exec ls -ld {} +&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Wed, 02 Dec 2009 14:14:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-command-help/m-p/5212161#M678682</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2009-12-02T14:14:01Z</dc:date>
    </item>
  </channel>
</rss>

