<?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: Bug with find? in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/bug-with-find/m-p/4905460#M404963</link>
    <description>Ok,&lt;BR /&gt;&lt;BR /&gt;I've got it: I have a job.sh script in root's home directory...</description>
    <pubDate>Fri, 03 Jun 2005 07:12:46 GMT</pubDate>
    <dc:creator>Eric Antunes</dc:creator>
    <dc:date>2005-06-03T07:12:46Z</dc:date>
    <item>
      <title>Bug with find?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/bug-with-find/m-p/4905447#M404950</link>
      <description>Hi all,&lt;BR /&gt;&lt;BR /&gt;When I do:&lt;BR /&gt;&lt;BR /&gt;#find disc2 -name *.sh -exec grep -l EOT {} \; &lt;BR /&gt;&lt;BR /&gt;I get only 1 file:&lt;BR /&gt;&lt;BR /&gt;disc2/.../scripts/job.sh&lt;BR /&gt;&lt;BR /&gt;But I've more scripts in disc2 with the word EOT... &lt;BR /&gt;&lt;BR /&gt;Any idea??&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;Eric Antunes</description>
      <pubDate>Fri, 03 Jun 2005 06:21:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/bug-with-find/m-p/4905447#M404950</guid>
      <dc:creator>Eric Antunes</dc:creator>
      <dc:date>2005-06-03T06:21:32Z</dc:date>
    </item>
    <item>
      <title>Re: Bug with find?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/bug-with-find/m-p/4905448#M404951</link>
      <description>Hi Eric,&lt;BR /&gt;&lt;BR /&gt;Does it make any difference if you quote your grep argument:&lt;BR /&gt;&lt;BR /&gt;grep -l 'EOT' {} \;&lt;BR /&gt;&lt;BR /&gt;How about if you use xargs instead:&lt;BR /&gt;&lt;BR /&gt;find disc2 -name *.sh | xargs grep -l 'EOT'&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Fri, 03 Jun 2005 06:27:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/bug-with-find/m-p/4905448#M404951</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2005-06-03T06:27:55Z</dc:date>
    </item>
    <item>
      <title>Re: Bug with find?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/bug-with-find/m-p/4905449#M404952</link>
      <description>Or?&lt;BR /&gt;&lt;BR /&gt;#find disc2 -name "*.sh" -exec grep -l EOT {} \;</description>
      <pubDate>Fri, 03 Jun 2005 06:33:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/bug-with-find/m-p/4905449#M404952</guid>
      <dc:creator>Stephen Keane</dc:creator>
      <dc:date>2005-06-03T06:33:22Z</dc:date>
    </item>
    <item>
      <title>Re: Bug with find?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/bug-with-find/m-p/4905450#M404953</link>
      <description>Please, post the outputs of following commands:&lt;BR /&gt;&lt;BR /&gt;ll *.sh&lt;BR /&gt;ll disc2/*.sh&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 03 Jun 2005 06:34:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/bug-with-find/m-p/4905450#M404953</guid>
      <dc:creator>CAS_2</dc:creator>
      <dc:date>2005-06-03T06:34:54Z</dc:date>
    </item>
    <item>
      <title>Re: Bug with find?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/bug-with-find/m-p/4905451#M404954</link>
      <description>Hi Pete,&lt;BR /&gt;&lt;BR /&gt;Sames results:&lt;BR /&gt;&lt;BR /&gt;# find disc2 -name *.sh -exec grep -l 'EOT' {} \;&lt;BR /&gt;disc2/app/oracle/admin/TST/scripts/job.sh&lt;BR /&gt;# find disc2 -name *.sh |xargs grep -l 'EOT'&lt;BR /&gt;disc2/app/oracle/admin/TST/scripts/job.sh&lt;BR /&gt;&lt;BR /&gt;I'm sure of this because I've lots of db scripts using svrngrl, i. e., with this line:&lt;BR /&gt;&lt;BR /&gt;...&lt;BR /&gt;svrmgrl &amp;lt;&amp;lt; EOT&lt;BR /&gt;...</description>
      <pubDate>Fri, 03 Jun 2005 06:34:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/bug-with-find/m-p/4905451#M404954</guid>
      <dc:creator>Eric Antunes</dc:creator>
      <dc:date>2005-06-03T06:34:59Z</dc:date>
    </item>
    <item>
      <title>Re: Bug with find?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/bug-with-find/m-p/4905452#M404955</link>
      <description>Like  Stephen Keane pointed out, you have to use quotes around *.sh, and more accurately you should escape out the epriod:&lt;BR /&gt;&lt;BR /&gt;find disc2 -name "*\.sh" -exec grep -l EOT {} \; &lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry d brown jr</description>
      <pubDate>Fri, 03 Jun 2005 06:36:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/bug-with-find/m-p/4905452#M404955</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2005-06-03T06:36:39Z</dc:date>
    </item>
    <item>
      <title>Re: Bug with find?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/bug-with-find/m-p/4905453#M404956</link>
      <description>I suspect there is a file called job.sh in your directory.&lt;BR /&gt;You should run&lt;BR /&gt;&lt;BR /&gt;find disc2 -name '*.sh' -exec grep -l EOT {} \;</description>
      <pubDate>Fri, 03 Jun 2005 06:36:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/bug-with-find/m-p/4905453#M404956</guid>
      <dc:creator>CAS_2</dc:creator>
      <dc:date>2005-06-03T06:36:57Z</dc:date>
    </item>
    <item>
      <title>Re: Bug with find?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/bug-with-find/m-p/4905454#M404957</link>
      <description>Stephen and Harry found it!&lt;BR /&gt;&lt;BR /&gt;But why I need to use "*\.sh" or "*.sh"??&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;Eric</description>
      <pubDate>Fri, 03 Jun 2005 06:40:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/bug-with-find/m-p/4905454#M404957</guid>
      <dc:creator>Eric Antunes</dc:creator>
      <dc:date>2005-06-03T06:40:03Z</dc:date>
    </item>
    <item>
      <title>Re: Bug with find?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/bug-with-find/m-p/4905455#M404958</link>
      <description>Is there a good manual about this commands?</description>
      <pubDate>Fri, 03 Jun 2005 06:41:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/bug-with-find/m-p/4905455#M404958</guid>
      <dc:creator>Eric Antunes</dc:creator>
      <dc:date>2005-06-03T06:41:23Z</dc:date>
    </item>
    <item>
      <title>Re: Bug with find?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/bug-with-find/m-p/4905456#M404959</link>
      <description>Because the SHELL will try to expand the * and the period, looking in your current directory for any matches to any file or directory that ends in "sh", and then it places it into your find command - not what you wanted.&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry d brown jr</description>
      <pubDate>Fri, 03 Jun 2005 06:42:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/bug-with-find/m-p/4905456#M404959</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2005-06-03T06:42:51Z</dc:date>
    </item>
    <item>
      <title>Re: Bug with find?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/bug-with-find/m-p/4905457#M404960</link>
      <description>because shell expand file patterns like "*.sh"&lt;BR /&gt;&lt;BR /&gt;Single quotes or double quotes prevent shell filename expansion.&lt;BR /&gt;&lt;BR /&gt;You'll obtain the same result by disabling the shell expansion:&lt;BR /&gt;&lt;BR /&gt;set -f&lt;BR /&gt;find disc2 -name *.sh -exec grep -l EOT {} \;&lt;BR /&gt;</description>
      <pubDate>Fri, 03 Jun 2005 06:42:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/bug-with-find/m-p/4905457#M404960</guid>
      <dc:creator>CAS_2</dc:creator>
      <dc:date>2005-06-03T06:42:59Z</dc:date>
    </item>
    <item>
      <title>Re: Bug with find?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/bug-with-find/m-p/4905458#M404961</link>
      <description>You can read the following paragraph in the sh-posix manual pages:&lt;BR /&gt;&lt;BR /&gt;File Name Generation&lt;BR /&gt;      Following substitution, each command word is processed as a pattern&lt;BR /&gt;      for file name expansion unless expansion has been disabled with the&lt;BR /&gt;      set -f special command.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;You thought you ran&lt;BR /&gt;&lt;BR /&gt;find disc2 -name *.sh -exec grep -l EOT {} \;&lt;BR /&gt;&lt;BR /&gt;but after shell filename expansion the real command launched was&lt;BR /&gt;&lt;BR /&gt;find disc2 -name job.sh -exec grep -l EOT {} \;</description>
      <pubDate>Fri, 03 Jun 2005 06:45:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/bug-with-find/m-p/4905458#M404961</guid>
      <dc:creator>CAS_2</dc:creator>
      <dc:date>2005-06-03T06:45:42Z</dc:date>
    </item>
    <item>
      <title>Re: Bug with find?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/bug-with-find/m-p/4905459#M404962</link>
      <description>After doing:&lt;BR /&gt;&lt;BR /&gt;#mv job.sh jobe.sh&lt;BR /&gt;&lt;BR /&gt;I get no results:&lt;BR /&gt;&lt;BR /&gt;#find disc2 -name *.sh -exec grep -l 'EOT' {} \;&lt;BR /&gt;#&lt;BR /&gt;&lt;BR /&gt;Is this because of job being a reserved word??&lt;BR /&gt;&lt;BR /&gt;Eric</description>
      <pubDate>Fri, 03 Jun 2005 07:10:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/bug-with-find/m-p/4905459#M404962</guid>
      <dc:creator>Eric Antunes</dc:creator>
      <dc:date>2005-06-03T07:10:37Z</dc:date>
    </item>
    <item>
      <title>Re: Bug with find?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/bug-with-find/m-p/4905460#M404963</link>
      <description>Ok,&lt;BR /&gt;&lt;BR /&gt;I've got it: I have a job.sh script in root's home directory...</description>
      <pubDate>Fri, 03 Jun 2005 07:12:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/bug-with-find/m-p/4905460#M404963</guid>
      <dc:creator>Eric Antunes</dc:creator>
      <dc:date>2005-06-03T07:12:46Z</dc:date>
    </item>
    <item>
      <title>Re: Bug with find?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/bug-with-find/m-p/4905461#M404964</link>
      <description>No, it's because there aren't any files that end in "sh", thus your find is executing with this:&lt;BR /&gt;&lt;BR /&gt;find disc2 -name sh -exec grep -l 'EOT' {} \;&lt;BR /&gt;&lt;BR /&gt;You have to pattern matching characters in quotes unless you want them to be expanded by the SHELL.&lt;BR /&gt;&lt;BR /&gt;and a period is a pattern matching character also, so you need to escape it out:&lt;BR /&gt;&lt;BR /&gt;"*\.sh"&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry d brown jr</description>
      <pubDate>Fri, 03 Jun 2005 07:13:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/bug-with-find/m-p/4905461#M404964</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2005-06-03T07:13:53Z</dc:date>
    </item>
    <item>
      <title>Re: Bug with find?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/bug-with-find/m-p/4905462#M404965</link>
      <description>Sorry, its:&lt;BR /&gt;&lt;BR /&gt;You have to PUT pattern matching characters in quotes unless you want them to be expanded by the SHELL.&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry d brown jr</description>
      <pubDate>Fri, 03 Jun 2005 07:15:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/bug-with-find/m-p/4905462#M404965</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2005-06-03T07:15:34Z</dc:date>
    </item>
    <item>
      <title>Re: Bug with find?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/bug-with-find/m-p/4905463#M404966</link>
      <description>Many thanks to all!</description>
      <pubDate>Fri, 03 Jun 2005 10:55:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/bug-with-find/m-p/4905463#M404966</guid>
      <dc:creator>Eric Antunes</dc:creator>
      <dc:date>2005-06-03T10:55:31Z</dc:date>
    </item>
  </channel>
</rss>

