<?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 Script help needed. in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help-needed/m-p/2618829#M925381</link>
    <description>I have a shell variable with this:&lt;BR /&gt;&lt;BR /&gt;$tmpdir="/opt/omni/newconfig/var/opt/omni/tmp /opt/hpnp/tmp /opt/bb18b3/tmp /opt/foglight/tmp /tmp /var/opt/pd/tmp /var/opt/omni.bak/tmp /var/tmp /var/spool/cron/tmp /var/dt/tmp"&lt;BR /&gt;&lt;BR /&gt;I use this command to put a /* at the end of each path:&lt;BR /&gt;&lt;BR /&gt;# echo $tmpdir | sed -e 's/ /\/\* /g' | sed -e 's/\(.*\)$/\1\/\*/'&lt;BR /&gt;&lt;BR /&gt;Now if I:&lt;BR /&gt;&lt;BR /&gt;a=$(echo $tmpdir | sed -e 's/ /\/\* /g' | sed -e 's/\(.*\)$/\1\/\*/');&lt;BR /&gt;&lt;BR /&gt;The output of $a have all the file in each path.  How do I prevent path filename resolving in inline substitution</description>
    <pubDate>Thu, 22 Nov 2001 13:12:28 GMT</pubDate>
    <dc:creator>Sebastien Masson</dc:creator>
    <dc:date>2001-11-22T13:12:28Z</dc:date>
    <item>
      <title>Script help needed.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help-needed/m-p/2618829#M925381</link>
      <description>I have a shell variable with this:&lt;BR /&gt;&lt;BR /&gt;$tmpdir="/opt/omni/newconfig/var/opt/omni/tmp /opt/hpnp/tmp /opt/bb18b3/tmp /opt/foglight/tmp /tmp /var/opt/pd/tmp /var/opt/omni.bak/tmp /var/tmp /var/spool/cron/tmp /var/dt/tmp"&lt;BR /&gt;&lt;BR /&gt;I use this command to put a /* at the end of each path:&lt;BR /&gt;&lt;BR /&gt;# echo $tmpdir | sed -e 's/ /\/\* /g' | sed -e 's/\(.*\)$/\1\/\*/'&lt;BR /&gt;&lt;BR /&gt;Now if I:&lt;BR /&gt;&lt;BR /&gt;a=$(echo $tmpdir | sed -e 's/ /\/\* /g' | sed -e 's/\(.*\)$/\1\/\*/');&lt;BR /&gt;&lt;BR /&gt;The output of $a have all the file in each path.  How do I prevent path filename resolving in inline substitution</description>
      <pubDate>Thu, 22 Nov 2001 13:12:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-help-needed/m-p/2618829#M925381</guid>
      <dc:creator>Sebastien Masson</dc:creator>
      <dc:date>2001-11-22T13:12:28Z</dc:date>
    </item>
    <item>
      <title>Re: Script help needed.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help-needed/m-p/2618830#M925382</link>
      <description>Hi Sebastien,&lt;BR /&gt;&lt;BR /&gt;Issue "set -f" before you issue the command, to disable filename generation.&lt;BR /&gt;&lt;BR /&gt;Switch it back on with "set +f"&lt;BR /&gt;&lt;BR /&gt;Rgds, Robin.</description>
      <pubDate>Thu, 22 Nov 2001 13:21:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-help-needed/m-p/2618830#M925382</guid>
      <dc:creator>Robin Wakefield</dc:creator>
      <dc:date>2001-11-22T13:21:45Z</dc:date>
    </item>
    <item>
      <title>Re: Script help needed.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help-needed/m-p/2618831#M925383</link>
      <description>how about putting a double backslash in front of \*, like \\\*&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry</description>
      <pubDate>Thu, 22 Nov 2001 13:23:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-help-needed/m-p/2618831#M925383</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2001-11-22T13:23:15Z</dc:date>
    </item>
    <item>
      <title>Re: Script help needed.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help-needed/m-p/2618832#M925384</link>
      <description>Robin,&lt;BR /&gt;&lt;BR /&gt;That's why I love this forum. I just learned something new :-))&lt;BR /&gt;&lt;BR /&gt;thanks!!!&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry</description>
      <pubDate>Thu, 22 Nov 2001 13:28:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-help-needed/m-p/2618832#M925384</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2001-11-22T13:28:28Z</dc:date>
    </item>
    <item>
      <title>Re: Script help needed.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help-needed/m-p/2618833#M925385</link>
      <description>This is nowhere near as elegant as Robin's reply, but I remember getting around this problem by&lt;BR /&gt;#mkdir -p /tmp/temp_dir111&lt;BR /&gt;#cd -p /tmp/temp_dir111&lt;BR /&gt;&lt;REST of="" the="" logic="" here=""&gt;&lt;BR /&gt;(there are no files here, so nothing to expand)&lt;BR /&gt;#cd -&lt;BR /&gt;#rm -rf /tmp/temp_dir111&lt;BR /&gt;&lt;BR /&gt;if only i was into this  forum back then...&lt;/REST&gt;</description>
      <pubDate>Thu, 22 Nov 2001 13:56:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-help-needed/m-p/2618833#M925385</guid>
      <dc:creator>Deepak Extross</dc:creator>
      <dc:date>2001-11-22T13:56:35Z</dc:date>
    </item>
  </channel>
</rss>

