<?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 problem in Operating System - Tru64 Unix</title>
    <link>https://community.hpe.com/t5/operating-system-tru64-unix/find-command-problem/m-p/4565589#M15280</link>
    <description>&lt;!--!*#--&gt;&amp;gt; #find / -name *.sql -exec \ rm {} \;&lt;BR /&gt;&lt;BR /&gt;Try something like:&lt;BR /&gt;&lt;BR /&gt;find / -name '*.sql' -exec rm {} \;&lt;BR /&gt;&lt;BR /&gt;You need to protect the "*" from the shell.&lt;BR /&gt;I don't know what that first "\" was supposed&lt;BR /&gt;to do for you.&lt;BR /&gt;&lt;BR /&gt;But I'd run it once without the "rm" stuff,&lt;BR /&gt;to make sure that it will find and delete&lt;BR /&gt;only what you wish to have deleted.  Or,&lt;BR /&gt;add "-i" to the "rm" command:&lt;BR /&gt;&lt;BR /&gt;find / -name '*.sql' -exec rm -i {} \;</description>
    <pubDate>Sun, 17 Jan 2010 15:34:13 GMT</pubDate>
    <dc:creator>Steven Schweda</dc:creator>
    <dc:date>2010-01-17T15:34:13Z</dc:date>
    <item>
      <title>find command problem</title>
      <link>https://community.hpe.com/t5/operating-system-tru64-unix/find-command-problem/m-p/4565588#M15279</link>
      <description>Hi all&lt;BR /&gt;I am using tru64 unix. &lt;BR /&gt;I executed this command form root&lt;BR /&gt;and received an error message.&lt;BR /&gt;The command is :-&lt;BR /&gt;#find / -name *.sql -exec \ rm {} \;&lt;BR /&gt;The error is:-&lt;BR /&gt;#find:cannot execute rm command.&lt;BR /&gt;&lt;BR /&gt;could anyone help me please.&lt;BR /&gt;bye.</description>
      <pubDate>Sun, 17 Jan 2010 11:51:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-tru64-unix/find-command-problem/m-p/4565588#M15279</guid>
      <dc:creator>fergani</dc:creator>
      <dc:date>2010-01-17T11:51:03Z</dc:date>
    </item>
    <item>
      <title>Re: find command problem</title>
      <link>https://community.hpe.com/t5/operating-system-tru64-unix/find-command-problem/m-p/4565589#M15280</link>
      <description>&lt;!--!*#--&gt;&amp;gt; #find / -name *.sql -exec \ rm {} \;&lt;BR /&gt;&lt;BR /&gt;Try something like:&lt;BR /&gt;&lt;BR /&gt;find / -name '*.sql' -exec rm {} \;&lt;BR /&gt;&lt;BR /&gt;You need to protect the "*" from the shell.&lt;BR /&gt;I don't know what that first "\" was supposed&lt;BR /&gt;to do for you.&lt;BR /&gt;&lt;BR /&gt;But I'd run it once without the "rm" stuff,&lt;BR /&gt;to make sure that it will find and delete&lt;BR /&gt;only what you wish to have deleted.  Or,&lt;BR /&gt;add "-i" to the "rm" command:&lt;BR /&gt;&lt;BR /&gt;find / -name '*.sql' -exec rm -i {} \;</description>
      <pubDate>Sun, 17 Jan 2010 15:34:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-tru64-unix/find-command-problem/m-p/4565589#M15280</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2010-01-17T15:34:13Z</dc:date>
    </item>
    <item>
      <title>Re: find command problem</title>
      <link>https://community.hpe.com/t5/operating-system-tru64-unix/find-command-problem/m-p/4565590#M15281</link>
      <description>try&lt;BR /&gt;find / -name *.sql -exec rm {} \;&lt;BR /&gt;&lt;BR /&gt;or &lt;BR /&gt;find / -name *.sql | xargs rm&lt;BR /&gt;&lt;BR /&gt;be lil careful you using * which mean everything ;)&lt;BR /&gt;&lt;BR /&gt;BR,&lt;BR /&gt;Kapil+</description>
      <pubDate>Mon, 18 Jan 2010 02:54:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-tru64-unix/find-command-problem/m-p/4565590#M15281</guid>
      <dc:creator>Kapil Jha</dc:creator>
      <dc:date>2010-01-18T02:54:57Z</dc:date>
    </item>
    <item>
      <title>Re: find command problem</title>
      <link>https://community.hpe.com/t5/operating-system-tru64-unix/find-command-problem/m-p/4565591#M15282</link>
      <description>&lt;!--!*#--&gt;&amp;gt; try&lt;BR /&gt;&amp;gt; find / -name *.sql -exec rm {} \;&lt;BR /&gt;&lt;BR /&gt;Not quoting the "*" wildcard here is a Really&lt;BR /&gt;Bad Idea (tm).  For example:&lt;BR /&gt;&lt;BR /&gt;urtx# pwd&lt;BR /&gt;/root&lt;BR /&gt;&lt;BR /&gt;urtx# ls -l *.tar&lt;BR /&gt;-rw-r--r--   1 root     system     20480 Jun  5  2007 tt_gnu.tar&lt;BR /&gt;-rw-r--r--   1 root     system     10240 Jun  5  2007 tt_t64.tar&lt;BR /&gt;&lt;BR /&gt;urtx# find /root -name *.tar -ls&lt;BR /&gt;find: missing conjunction&lt;BR /&gt;&lt;BR /&gt;urtx# find /root -name '*.tar' -ls&lt;BR /&gt;    2507   20 -rw-r--r--  1 root     system      20480 Jun  5  2007 /root/tt_gnu.tar&lt;BR /&gt;    2506   10 -rw-r--r--  1 root     system      10240 Jun  5  2007 /root/tt_t64.tar&lt;BR /&gt;    2322   13 -rwxr-x---  1 nobody   nobody      12800 Jun  6  2007 /root/tt2/tt_gnu_x.tar&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;gt; You need to protect the "*" from the shell.&lt;BR /&gt;&lt;BR /&gt;Still true, in general.  Although you may get&lt;BR /&gt;lucky from time to time, you need to decide&lt;BR /&gt;how much you wish to depend on luck.</description>
      <pubDate>Mon, 18 Jan 2010 06:36:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-tru64-unix/find-command-problem/m-p/4565591#M15282</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2010-01-18T06:36:21Z</dc:date>
    </item>
  </channel>
</rss>

