<?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: script help : display value of variable parameter in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help-display-value-of-variable-parameter/m-p/4981465#M782129</link>
    <description>Hi, Warren,&lt;BR /&gt;&lt;BR /&gt;It solved my problem, thank you very much.&lt;BR /&gt;</description>
    <pubDate>Mon, 29 May 2006 22:57:10 GMT</pubDate>
    <dc:creator>patrick xi</dc:creator>
    <dc:date>2006-05-29T22:57:10Z</dc:date>
    <item>
      <title>script help : display value of variable parameter</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help-display-value-of-variable-parameter/m-p/4981463#M782127</link>
      <description>Dear friends, &lt;BR /&gt;&lt;BR /&gt;Is it possible to display the value of a variable parameter, I make a sample script below. But it can only display the parameter name.&lt;BR /&gt;&lt;BR /&gt;SAMPLE:&lt;BR /&gt;&lt;BR /&gt;FILE1=red&lt;BR /&gt;FILE2=black&lt;BR /&gt;for i in {1,2}&lt;BR /&gt;do &lt;BR /&gt;echo $"FILE$i" &lt;BR /&gt;let i=i+1&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;I need the output of this line to be &lt;BR /&gt;red&lt;BR /&gt;black&lt;BR /&gt;but it is&lt;BR /&gt;$FILE1&lt;BR /&gt;$FILE2&lt;BR /&gt;&lt;BR /&gt;Could you help modify so that I could get correct output?</description>
      <pubDate>Mon, 29 May 2006 22:16:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-help-display-value-of-variable-parameter/m-p/4981463#M782127</guid>
      <dc:creator>patrick xi</dc:creator>
      <dc:date>2006-05-29T22:16:30Z</dc:date>
    </item>
    <item>
      <title>Re: script help : display value of variable parameter</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help-display-value-of-variable-parameter/m-p/4981464#M782128</link>
      <description>hi,&lt;BR /&gt;&lt;BR /&gt;using array....&lt;BR /&gt;&lt;BR /&gt;set -A FILE&lt;BR /&gt;FILE[1]=red&lt;BR /&gt;FILE[2]=black&lt;BR /&gt;for i in 1 2&lt;BR /&gt;do&lt;BR /&gt;echo ${FILE[$i]}&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;GOOD LUCK!!</description>
      <pubDate>Mon, 29 May 2006 22:42:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-help-display-value-of-variable-parameter/m-p/4981464#M782128</guid>
      <dc:creator>Warren_9</dc:creator>
      <dc:date>2006-05-29T22:42:25Z</dc:date>
    </item>
    <item>
      <title>Re: script help : display value of variable parameter</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help-display-value-of-variable-parameter/m-p/4981465#M782129</link>
      <description>Hi, Warren,&lt;BR /&gt;&lt;BR /&gt;It solved my problem, thank you very much.&lt;BR /&gt;</description>
      <pubDate>Mon, 29 May 2006 22:57:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-help-display-value-of-variable-parameter/m-p/4981465#M782129</guid>
      <dc:creator>patrick xi</dc:creator>
      <dc:date>2006-05-29T22:57:10Z</dc:date>
    </item>
    <item>
      <title>Re: script help : display value of variable parameter</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help-display-value-of-variable-parameter/m-p/4981466#M782130</link>
      <description>Without using an array:&lt;BR /&gt;&lt;BR /&gt;FILE1=red&lt;BR /&gt;FILE2=black&lt;BR /&gt;for I in 1 2&lt;BR /&gt;do&lt;BR /&gt;  eval echo \"\$FILE$I\"&lt;BR /&gt;done&lt;BR /&gt;</description>
      <pubDate>Mon, 29 May 2006 23:05:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-help-display-value-of-variable-parameter/m-p/4981466#M782130</guid>
      <dc:creator>Ivan Ferreira</dc:creator>
      <dc:date>2006-05-29T23:05:14Z</dc:date>
    </item>
    <item>
      <title>Re: script help : display value of variable parameter</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help-display-value-of-variable-parameter/m-p/4981467#M782131</link>
      <description>thread closed.</description>
      <pubDate>Tue, 30 May 2006 21:05:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-help-display-value-of-variable-parameter/m-p/4981467#M782131</guid>
      <dc:creator>patrick xi</dc:creator>
      <dc:date>2006-05-30T21:05:23Z</dc:date>
    </item>
  </channel>
</rss>

