<?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: Shell Script using find and * in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-using-find-and/m-p/2456898#M728089</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;your syntax -name ""$name"*" is ok.&lt;BR /&gt;The problem is the /directory.&lt;BR /&gt;I only get a cannot stat ... when /directory doesn't exists.&lt;BR /&gt;&lt;BR /&gt;Regards</description>
    <pubDate>Tue, 24 Oct 2000 07:01:34 GMT</pubDate>
    <dc:creator>Andreas Voss</dc:creator>
    <dc:date>2000-10-24T07:01:34Z</dc:date>
    <item>
      <title>Shell Script using find and *</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-using-find-and/m-p/2456897#M728088</link>
      <description>My problem is the following:&lt;BR /&gt;I want to create a shell script which looks for all files starting with about 8 know characters, input given as variable.&lt;BR /&gt;When I try:&lt;BR /&gt;find /directory -name ""$name"*" -print&lt;BR /&gt;I recieve the following error:&lt;BR /&gt;find: cannot stat ....&lt;BR /&gt;Which substitution is neccessary to recieve a correct output.</description>
      <pubDate>Tue, 24 Oct 2000 04:49:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-using-find-and/m-p/2456897#M728088</guid>
      <dc:creator>Bettina Ofner</dc:creator>
      <dc:date>2000-10-24T04:49:11Z</dc:date>
    </item>
    <item>
      <title>Re: Shell Script using find and *</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-using-find-and/m-p/2456898#M728089</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;your syntax -name ""$name"*" is ok.&lt;BR /&gt;The problem is the /directory.&lt;BR /&gt;I only get a cannot stat ... when /directory doesn't exists.&lt;BR /&gt;&lt;BR /&gt;Regards</description>
      <pubDate>Tue, 24 Oct 2000 07:01:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-using-find-and/m-p/2456898#M728089</guid>
      <dc:creator>Andreas Voss</dc:creator>
      <dc:date>2000-10-24T07:01:34Z</dc:date>
    </item>
    <item>
      <title>Re: Shell Script using find and *</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-using-find-and/m-p/2456899#M728090</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;You can either choose to quote the name string or to escape the *:-&lt;BR /&gt;&lt;BR /&gt;find /directory -name "$name*"&lt;BR /&gt;or&lt;BR /&gt;find /directory -name $name\*&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;John&lt;BR /&gt;</description>
      <pubDate>Tue, 24 Oct 2000 08:27:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-using-find-and/m-p/2456899#M728090</guid>
      <dc:creator>John Palmer</dc:creator>
      <dc:date>2000-10-24T08:27:14Z</dc:date>
    </item>
    <item>
      <title>Re: Shell Script using find and *</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-using-find-and/m-p/2456900#M728091</link>
      <description>Wildcard substitutions can do strange things when the find command is parsed before execution.  Personally, I favor John's second solution (escaping teh wildcard with \)</description>
      <pubDate>Tue, 24 Oct 2000 14:14:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-using-find-and/m-p/2456900#M728091</guid>
      <dc:creator>Alan Riggs</dc:creator>
      <dc:date>2000-10-24T14:14:26Z</dc:date>
    </item>
  </channel>
</rss>

