<?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: parameter with find in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/parameter-with-find/m-p/2968517#M119892</link>
    <description>Try this:&lt;BR /&gt;&lt;BR /&gt;find . -name '*.HTM y *.png' -mtime +15 -exec ll&lt;BR /&gt;&lt;BR /&gt;If that works and gives you the results you want, change the "ll" to "rm".&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
    <pubDate>Thu, 08 May 2003 13:40:21 GMT</pubDate>
    <dc:creator>Pete Randall</dc:creator>
    <dc:date>2003-05-08T13:40:21Z</dc:date>
    <item>
      <title>parameter with find</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/parameter-with-find/m-p/2968516#M119891</link>
      <description>hello , I want to erase the archives *.HTM y *.png but old 15 day, in the directory too exist files .gif and .jpg that I do not want to erase &lt;BR /&gt;&lt;BR /&gt;both display all files (ll replace for rm)&lt;BR /&gt;&lt;BR /&gt;#find . -mtime +15 -exec ll {} \;&lt;BR /&gt;&lt;BR /&gt;#find . -mtime +15 -exec ll *.HTM {} \;&lt;BR /&gt;&lt;BR /&gt;as I avoid that display all files .gif and .jpg&lt;BR /&gt;&lt;BR /&gt;thanks&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 08 May 2003 13:32:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/parameter-with-find/m-p/2968516#M119891</guid>
      <dc:creator>Jairo Campana</dc:creator>
      <dc:date>2003-05-08T13:32:31Z</dc:date>
    </item>
    <item>
      <title>Re: parameter with find</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/parameter-with-find/m-p/2968517#M119892</link>
      <description>Try this:&lt;BR /&gt;&lt;BR /&gt;find . -name '*.HTM y *.png' -mtime +15 -exec ll&lt;BR /&gt;&lt;BR /&gt;If that works and gives you the results you want, change the "ll" to "rm".&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Thu, 08 May 2003 13:40:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/parameter-with-find/m-p/2968517#M119892</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2003-05-08T13:40:21Z</dc:date>
    </item>
    <item>
      <title>Re: parameter with find</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/parameter-with-find/m-p/2968518#M119893</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I think you don't need the *.HTM after the 'll' in your second command.  You'll need to use the -name option to pass the name to find, like this:&lt;BR /&gt;&lt;BR /&gt;find . -mtime +15 -name "*.HTM" -exec ll {} \;&lt;BR /&gt;&lt;BR /&gt;Here is one way to do it in a single command [taken from the find man page]:&lt;BR /&gt;&lt;BR /&gt;find . \( -name "*.HTM" -o -name "*.png" \) -mtime +15 -exec ll {} \;&lt;BR /&gt;&lt;BR /&gt;If it finds just the files you want, you can replace the 'll' with 'rm'.&lt;BR /&gt;&lt;BR /&gt;JP&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 08 May 2003 13:43:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/parameter-with-find/m-p/2968518#M119893</guid>
      <dc:creator>John Poff</dc:creator>
      <dc:date>2003-05-08T13:43:52Z</dc:date>
    </item>
    <item>
      <title>Re: parameter with find</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/parameter-with-find/m-p/2968519#M119894</link>
      <description>pete forget the {} \; at then end.&lt;BR /&gt;&lt;BR /&gt;Pete I try to run the '*.test *.out' didn't work.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Can you run two different command?&lt;BR /&gt;find . -name '*.HTM' -mtime +15 -exec ls -la {} \;&lt;BR /&gt;&lt;BR /&gt;find . -name '*.png' -mtime +15 -exec ls -la {} \;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Sachin</description>
      <pubDate>Thu, 08 May 2003 13:45:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/parameter-with-find/m-p/2968519#M119894</guid>
      <dc:creator>Sachin Patel</dc:creator>
      <dc:date>2003-05-08T13:45:41Z</dc:date>
    </item>
    <item>
      <title>Re: parameter with find</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/parameter-with-find/m-p/2968520#M119895</link>
      <description>hi,&lt;BR /&gt;&lt;BR /&gt;try this from the man page:&lt;BR /&gt;&lt;BR /&gt;Remove all files named a.out or *.o that have not been accessed for a&lt;BR /&gt;      week:&lt;BR /&gt;&lt;BR /&gt;           find / \( -name a.out -o -name '*.o' \) -atime +7 -exec rm {} \;&lt;BR /&gt;&lt;BR /&gt;           Note that the spaces delimiting the escaped parentheses are&lt;BR /&gt;           required.&lt;BR /&gt;&lt;BR /&gt;regards</description>
      <pubDate>Thu, 08 May 2003 13:46:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/parameter-with-find/m-p/2968520#M119895</guid>
      <dc:creator>LucianoCarvalho</dc:creator>
      <dc:date>2003-05-08T13:46:49Z</dc:date>
    </item>
    <item>
      <title>Re: parameter with find</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/parameter-with-find/m-p/2968521#M119896</link>
      <description>Sorry, I cut and paste the "*.HTM y *.png" without realizing it was two different arguments and Sachin's right, I forgot the "{} \;" (which Jairo obviously knew enough to use).&lt;BR /&gt;&lt;BR /&gt;JP's got the answer - ignore my drivel.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Thu, 08 May 2003 13:48:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/parameter-with-find/m-p/2968521#M119896</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2003-05-08T13:48:47Z</dc:date>
    </item>
  </channel>
</rss>

