<?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: non-recursive find in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/non-recursive-find/m-p/4578288#M650660</link>
    <description>Hi (again):&lt;BR /&gt;&lt;BR /&gt;I should have written the following to avoid listing subdirectories in the first place:&lt;BR /&gt;&lt;BR /&gt;# find . \( -name . -o -prune \) -type f -mtime +30 -exec ls -ld {} +&lt;BR /&gt;&lt;BR /&gt;I also eliminated the implicit "and" ('-a') for bevity.&lt;BR /&gt;&lt;BR /&gt;Yes, using the '+' terminator works on AIX ( &amp;gt;= 5.2 at least).&lt;BR /&gt;&lt;BR /&gt;Yes, one wishes the HP-UX (and AIX) had the GNU '-maxdepth' option.&lt;BR /&gt;&lt;BR /&gt;And, just maybe the OP has use for this in a script that runs on many flavors of UNIX let alone LINUX...&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt;</description>
    <pubDate>Thu, 04 Feb 2010 17:16:07 GMT</pubDate>
    <dc:creator>James R. Ferguson</dc:creator>
    <dc:date>2010-02-04T17:16:07Z</dc:date>
    <item>
      <title>non-recursive find</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/non-recursive-find/m-p/4578284#M650656</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I would like to run:&lt;BR /&gt;find . -type f -mtime +30 -exec /bin/rm {} \;&lt;BR /&gt;&lt;BR /&gt;only in the current directory without subdirectories. I can't see such an option in find manual of  AIX 5.3. Any ideas how I can handle it?</description>
      <pubDate>Thu, 04 Feb 2010 15:06:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/non-recursive-find/m-p/4578284#M650656</guid>
      <dc:creator>wojtek75</dc:creator>
      <dc:date>2010-02-04T15:06:08Z</dc:date>
    </item>
    <item>
      <title>Re: non-recursive find</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/non-recursive-find/m-p/4578285#M650657</link>
      <description>Hi,&lt;BR /&gt;Try the option prune&lt;BR /&gt;find . -type f -prune -mtime +30 -print&lt;BR /&gt;HTH</description>
      <pubDate>Thu, 04 Feb 2010 15:22:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/non-recursive-find/m-p/4578285#M650657</guid>
      <dc:creator>smatador</dc:creator>
      <dc:date>2010-02-04T15:22:41Z</dc:date>
    </item>
    <item>
      <title>Re: non-recursive find</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/non-recursive-find/m-p/4578286#M650658</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;# cd /path&lt;BR /&gt;# find . \( -type f -o -name . -o -prune \) -a -mtime +30 -a -exec ls -ld {} +&lt;BR /&gt;&lt;BR /&gt;If you like the results, change 'ls -ld {} +' to 'rm {} +'.&lt;BR /&gt;&lt;BR /&gt;Using the '+' terminator with '-exec' is much faster since multiple arguments are passed to the spawned process.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt;</description>
      <pubDate>Thu, 04 Feb 2010 15:31:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/non-recursive-find/m-p/4578286#M650658</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2010-02-04T15:31:01Z</dc:date>
    </item>
    <item>
      <title>Re: non-recursive find</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/non-recursive-find/m-p/4578287#M650659</link>
      <description>&lt;!--!*#--&gt;&amp;gt; [...] AIX 5.3.  [...]&lt;BR /&gt;&lt;BR /&gt;So why ask here?&lt;BR /&gt;&lt;BR /&gt;&amp;gt; Using the '+' terminator [...]&lt;BR /&gt;&lt;BR /&gt;May not work well with the "find" program on&lt;BR /&gt;AIX 5.3, but I haven't tried it.&lt;BR /&gt;&lt;BR /&gt;A Forum search for keywords like&lt;BR /&gt;      find prune&lt;BR /&gt;may find more examples.  GNU "find" has a&lt;BR /&gt;"-maxdepth" option, which may be easier to&lt;BR /&gt;use (or understand), and GNU "find" should&lt;BR /&gt;be available for AIX.</description>
      <pubDate>Thu, 04 Feb 2010 16:04:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/non-recursive-find/m-p/4578287#M650659</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2010-02-04T16:04:55Z</dc:date>
    </item>
    <item>
      <title>Re: non-recursive find</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/non-recursive-find/m-p/4578288#M650660</link>
      <description>Hi (again):&lt;BR /&gt;&lt;BR /&gt;I should have written the following to avoid listing subdirectories in the first place:&lt;BR /&gt;&lt;BR /&gt;# find . \( -name . -o -prune \) -type f -mtime +30 -exec ls -ld {} +&lt;BR /&gt;&lt;BR /&gt;I also eliminated the implicit "and" ('-a') for bevity.&lt;BR /&gt;&lt;BR /&gt;Yes, using the '+' terminator works on AIX ( &amp;gt;= 5.2 at least).&lt;BR /&gt;&lt;BR /&gt;Yes, one wishes the HP-UX (and AIX) had the GNU '-maxdepth' option.&lt;BR /&gt;&lt;BR /&gt;And, just maybe the OP has use for this in a script that runs on many flavors of UNIX let alone LINUX...&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt;</description>
      <pubDate>Thu, 04 Feb 2010 17:16:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/non-recursive-find/m-p/4578288#M650660</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2010-02-04T17:16:07Z</dc:date>
    </item>
    <item>
      <title>Re: non-recursive find</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/non-recursive-find/m-p/4578289#M650661</link>
      <description>JRF,&lt;BR /&gt;&lt;BR /&gt;Please explain the use of -o in the syntax,&lt;BR /&gt;&lt;BR /&gt;Thanks...</description>
      <pubDate>Mon, 08 Feb 2010 17:02:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/non-recursive-find/m-p/4578289#M650661</guid>
      <dc:creator>RC Park</dc:creator>
      <dc:date>2010-02-08T17:02:41Z</dc:date>
    </item>
    <item>
      <title>Re: non-recursive find</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/non-recursive-find/m-p/4578290#M650662</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;&amp;gt; Please explain the use of -o in the syntax,&lt;BR /&gt;&lt;BR /&gt;The '-o' means "or.  An '-a' means "and".  see the manpages for 'find()'.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Mon, 08 Feb 2010 17:42:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/non-recursive-find/m-p/4578290#M650662</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2010-02-08T17:42:43Z</dc:date>
    </item>
    <item>
      <title>Re: non-recursive find</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/non-recursive-find/m-p/4578291#M650663</link>
      <description>JRF, &lt;BR /&gt;Yes, thanks!  I can see that - In fact, had looked at the man page before posting, but it made no sense reviewing this thread, but for some reason, now it does.  &lt;BR /&gt;&lt;BR /&gt;Thanks!&lt;BR /&gt;&lt;BR /&gt;RCP</description>
      <pubDate>Mon, 08 Feb 2010 17:45:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/non-recursive-find/m-p/4578291#M650663</guid>
      <dc:creator>RC Park</dc:creator>
      <dc:date>2010-02-08T17:45:12Z</dc:date>
    </item>
  </channel>
</rss>

