<?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: Scripting Parameter Passing ??? in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-parameter-passing/m-p/2937637#M752525</link>
    <description>Try using&lt;BR /&gt;&lt;BR /&gt;read -r dir file&lt;BR /&gt;&lt;BR /&gt;"-r" will force read not to interpret the "$".&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;&lt;BR /&gt;-- Rod Hills</description>
    <pubDate>Thu, 27 Mar 2003 21:06:49 GMT</pubDate>
    <dc:creator>Rodney Hills</dc:creator>
    <dc:date>2003-03-27T21:06:49Z</dc:date>
    <item>
      <title>Scripting Parameter Passing ???</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-parameter-passing/m-p/2937634#M752522</link>
      <description>I have a script that reads a file similar to:&lt;BR /&gt;sql toe_translate_pkb.sql&lt;BR /&gt;sql toe_update_pkg.sql&lt;BR /&gt;sql tup_$translate_pkg.sql&lt;BR /&gt;etc.....&lt;BR /&gt;&lt;BR /&gt;I do a read of the file picking up a parameter for each filed.&lt;BR /&gt;i.e. read dir file&lt;BR /&gt;&lt;BR /&gt;I then have to pass these&lt;BR /&gt;parameters onto another script, and the problem I am having is the "$" in the filename on some files is being confused for the start of another parameter. So as an end result when I pass $file onto another script the 2nd script translates that to just "tup_"&lt;BR /&gt;&lt;BR /&gt;How do I get around this so the whole file name is passed along ??</description>
      <pubDate>Thu, 27 Mar 2003 20:58:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-parameter-passing/m-p/2937634#M752522</guid>
      <dc:creator>MikeL_4</dc:creator>
      <dc:date>2003-03-27T20:58:48Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting Parameter Passing ???</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-parameter-passing/m-p/2937635#M752523</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;Escape the dollar sign character with a backslash, as for instance:&lt;BR /&gt;&lt;BR /&gt;# echo \$translate_pkg.sql &lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt;</description>
      <pubDate>Thu, 27 Mar 2003 21:03:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-parameter-passing/m-p/2937635#M752523</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2003-03-27T21:03:08Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting Parameter Passing ???</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-parameter-passing/m-p/2937636#M752524</link>
      <description>Here's the rule:&lt;BR /&gt;&lt;BR /&gt;Let's assume that $X="Bill".&lt;BR /&gt;&lt;BR /&gt;Things inside double quotes get expanded so that "xx$X" becomes "xxBill" BUT things inside single quotes remain intact. 'xx$X' remains "xx$X".&lt;BR /&gt;</description>
      <pubDate>Thu, 27 Mar 2003 21:05:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-parameter-passing/m-p/2937636#M752524</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2003-03-27T21:05:10Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting Parameter Passing ???</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-parameter-passing/m-p/2937637#M752525</link>
      <description>Try using&lt;BR /&gt;&lt;BR /&gt;read -r dir file&lt;BR /&gt;&lt;BR /&gt;"-r" will force read not to interpret the "$".&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;&lt;BR /&gt;-- Rod Hills</description>
      <pubDate>Thu, 27 Mar 2003 21:06:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-parameter-passing/m-p/2937637#M752525</guid>
      <dc:creator>Rodney Hills</dc:creator>
      <dc:date>2003-03-27T21:06:49Z</dc:date>
    </item>
  </channel>
</rss>

