<?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/2654049#M921827</link>
    <description>Hi&lt;BR /&gt;I think you forgot the backslash at the end of your line before the ;&lt;BR /&gt;&lt;BR /&gt;All the best&lt;BR /&gt;&lt;BR /&gt;Victor</description>
    <pubDate>Mon, 28 Jan 2002 17:11:40 GMT</pubDate>
    <dc:creator>Victor BERRIDGE</dc:creator>
    <dc:date>2002-01-28T17:11:40Z</dc:date>
    <item>
      <title>find command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-command/m-p/2654048#M921826</link>
      <description>Hey guys,&lt;BR /&gt;&lt;BR /&gt;what am I doing wrong here. I'm running this command and it doesn't seem to be doing what I'm asking.&lt;BR /&gt;&lt;BR /&gt;find /home/jonny -name test.log.* -type f -mtime +14 -exec rm -f {} ;&lt;BR /&gt;&lt;BR /&gt;I am running this out of my home directory. Trying to find for the file and remove it if the file hasn't been modified in over 14 days. Any help will be greatly appreciated.</description>
      <pubDate>Mon, 28 Jan 2002 17:08:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-command/m-p/2654048#M921826</guid>
      <dc:creator>Ragni Singh</dc:creator>
      <dc:date>2002-01-28T17:08:40Z</dc:date>
    </item>
    <item>
      <title>Re: find command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-command/m-p/2654049#M921827</link>
      <description>Hi&lt;BR /&gt;I think you forgot the backslash at the end of your line before the ;&lt;BR /&gt;&lt;BR /&gt;All the best&lt;BR /&gt;&lt;BR /&gt;Victor</description>
      <pubDate>Mon, 28 Jan 2002 17:11:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-command/m-p/2654049#M921827</guid>
      <dc:creator>Victor BERRIDGE</dc:creator>
      <dc:date>2002-01-28T17:11:40Z</dc:date>
    </item>
    <item>
      <title>Re: find command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-command/m-p/2654050#M921828</link>
      <description>try...&lt;BR /&gt;find /home/jonny -name "test.log.*" -a -type f -a -mtime +14 -exec rm -f {} \; &lt;BR /&gt;&lt;BR /&gt;instead.</description>
      <pubDate>Mon, 28 Jan 2002 17:12:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-command/m-p/2654050#M921828</guid>
      <dc:creator>James A. Donovan</dc:creator>
      <dc:date>2002-01-28T17:12:26Z</dc:date>
    </item>
    <item>
      <title>Re: find command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-command/m-p/2654051#M921829</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;Do you have the backslash at the command's end (before the semicolon)?&lt;BR /&gt;&lt;BR /&gt;# find /home/jonny -name test.log.* -type f -mtime +14 -exec rm -f {} \;&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 28 Jan 2002 17:14:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-command/m-p/2654051#M921829</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2002-01-28T17:14:00Z</dc:date>
    </item>
    <item>
      <title>Re: find command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-command/m-p/2654052#M921830</link>
      <description>Depending upon the shell, you should quote the name string because of the wild card.&lt;BR /&gt;&lt;BR /&gt;find /home/jonny -name "test.log.*" -type f -mtime +14 -exec rm -f {} ;&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry</description>
      <pubDate>Mon, 28 Jan 2002 17:14:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-command/m-p/2654052#M921830</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2002-01-28T17:14:15Z</dc:date>
    </item>
    <item>
      <title>Re: find command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-command/m-p/2654053#M921831</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I Think that:&lt;BR /&gt;find /home/jonny -name "test.log.*" -a -type f -a -mtime +14 -exec rm -f {} \; &lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Justo.</description>
      <pubDate>Mon, 28 Jan 2002 17:14:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-command/m-p/2654053#M921831</guid>
      <dc:creator>Justo Exposito</dc:creator>
      <dc:date>2002-01-28T17:14:52Z</dc:date>
    </item>
    <item>
      <title>Re: find command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-command/m-p/2654054#M921832</link>
      <description>If you left off the backslash, then you would get this error:&lt;BR /&gt;&lt;BR /&gt;find: -exec not terminated with ';'&lt;BR /&gt;&lt;BR /&gt;Probably a bad cut and paste ;-)&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry</description>
      <pubDate>Mon, 28 Jan 2002 17:15:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-command/m-p/2654054#M921832</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2002-01-28T17:15:58Z</dc:date>
    </item>
    <item>
      <title>Re: find command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-command/m-p/2654055#M921833</link>
      <description>Hi,&lt;BR /&gt;Try this:&lt;BR /&gt;&lt;BR /&gt;find /home/jonny -name "test.log.*" -type f -mtime +14 -exec rm -f {} \; &lt;BR /&gt;&lt;BR /&gt;Best luck</description>
      <pubDate>Mon, 28 Jan 2002 17:16:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-command/m-p/2654055#M921833</guid>
      <dc:creator>David Navarro</dc:creator>
      <dc:date>2002-01-28T17:16:07Z</dc:date>
    </item>
    <item>
      <title>Re: find command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-command/m-p/2654056#M921834</link>
      <description>Hi Sanman:&lt;BR /&gt;&lt;BR /&gt;You have two problems:&lt;BR /&gt;&lt;BR /&gt;1) As mentiopned you need the \ character before the ';'.&lt;BR /&gt;&lt;BR /&gt;2) You need SINGLE QUOTES around your -n wildcard pattern because you do not want the shell toi expand the filename but rather you want to pass the wildcard string unmodified into find.&lt;BR /&gt;&lt;BR /&gt;Regards, Clay</description>
      <pubDate>Mon, 28 Jan 2002 17:18:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-command/m-p/2654056#M921834</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2002-01-28T17:18:34Z</dc:date>
    </item>
    <item>
      <title>Re: find command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-command/m-p/2654057#M921835</link>
      <description>And as a debug note: NEVER include the -exec option (especially with rm -f) until you are sure the find actually returns the names you expect. A catastrophic result will take place if you accidently put a space in front of the * for your -name parameter!</description>
      <pubDate>Mon, 28 Jan 2002 17:38:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-command/m-p/2654057#M921835</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2002-01-28T17:38:38Z</dc:date>
    </item>
  </channel>
</rss>

