<?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: how to evaluate this variable in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/how-to-evaluate-this-variable/m-p/3801912#M99856</link>
    <description>If you want to set fred2 to the value of fred, try this...&lt;BR /&gt;&lt;BR /&gt;fred=/tmp&lt;BR /&gt;fred2=$fred&lt;BR /&gt;&lt;BR /&gt;KJ</description>
    <pubDate>Wed, 07 Jun 2006 15:02:38 GMT</pubDate>
    <dc:creator>Keith Johnson</dc:creator>
    <dc:date>2006-06-07T15:02:38Z</dc:date>
    <item>
      <title>how to evaluate this variable</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-evaluate-this-variable/m-p/3801909#M99853</link>
      <description>say if I have&lt;BR /&gt;&lt;BR /&gt;fred=/tmp&lt;BR /&gt;fred2=fred&lt;BR /&gt;&lt;BR /&gt;how do I get the variable for fred from fred2&lt;BR /&gt;&lt;BR /&gt;if I do echo "$fred2", it doesnt work..&lt;BR /&gt;&lt;BR /&gt;I tried many ways, none of that work, please advise...&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;</description>
      <pubDate>Wed, 07 Jun 2006 14:56:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-evaluate-this-variable/m-p/3801909#M99853</guid>
      <dc:creator>Gemini_2</dc:creator>
      <dc:date>2006-06-07T14:56:40Z</dc:date>
    </item>
    <item>
      <title>Re: how to evaluate this variable</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-evaluate-this-variable/m-p/3801910#M99854</link>
      <description>posted too fast...I meant to say. I want to get the value of fred from fred2...&lt;BR /&gt;&lt;BR /&gt;like "echo $fred2" will print "/tmp"&lt;BR /&gt;&lt;BR /&gt;I know "echo $fred2" is wrong..."echo $$fred2" is also wrong :-(</description>
      <pubDate>Wed, 07 Jun 2006 14:58:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-evaluate-this-variable/m-p/3801910#M99854</guid>
      <dc:creator>Gemini_2</dc:creator>
      <dc:date>2006-06-07T14:58:27Z</dc:date>
    </item>
    <item>
      <title>Re: how to evaluate this variable</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-evaluate-this-variable/m-p/3801911#M99855</link>
      <description>Try using 'eval'.  Here is one way to do it:&lt;BR /&gt;&lt;BR /&gt;eval echo \$$FRED2&lt;BR /&gt;/tmp&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;JP</description>
      <pubDate>Wed, 07 Jun 2006 15:01:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-evaluate-this-variable/m-p/3801911#M99855</guid>
      <dc:creator>John Poff</dc:creator>
      <dc:date>2006-06-07T15:01:28Z</dc:date>
    </item>
    <item>
      <title>Re: how to evaluate this variable</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-evaluate-this-variable/m-p/3801912#M99856</link>
      <description>If you want to set fred2 to the value of fred, try this...&lt;BR /&gt;&lt;BR /&gt;fred=/tmp&lt;BR /&gt;fred2=$fred&lt;BR /&gt;&lt;BR /&gt;KJ</description>
      <pubDate>Wed, 07 Jun 2006 15:02:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-evaluate-this-variable/m-p/3801912#M99856</guid>
      <dc:creator>Keith Johnson</dc:creator>
      <dc:date>2006-06-07T15:02:38Z</dc:date>
    </item>
    <item>
      <title>Re: how to evaluate this variable</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-evaluate-this-variable/m-p/3801913#M99857</link>
      <description>Oops.  I used upper case and you used lower:&lt;BR /&gt;&lt;BR /&gt;eval echo \$$fred2&lt;BR /&gt;/tmp&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 07 Jun 2006 15:02:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-evaluate-this-variable/m-p/3801913#M99857</guid>
      <dc:creator>John Poff</dc:creator>
      <dc:date>2006-06-07T15:02:39Z</dc:date>
    </item>
    <item>
      <title>Re: how to evaluate this variable</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-evaluate-this-variable/m-p/3801914#M99858</link>
      <description>such easy answer..I was so close..&lt;BR /&gt;&lt;BR /&gt;I used &lt;BR /&gt;&lt;BR /&gt;  `eval echo \$$i`&lt;BR /&gt;&lt;BR /&gt;I should not put ` `, it will make it evalute 3 times :-(&lt;BR /&gt;&lt;BR /&gt;thank you!!&lt;BR /&gt;&lt;BR /&gt;I got it</description>
      <pubDate>Wed, 07 Jun 2006 15:15:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-evaluate-this-variable/m-p/3801914#M99858</guid>
      <dc:creator>Gemini_2</dc:creator>
      <dc:date>2006-06-07T15:15:17Z</dc:date>
    </item>
  </channel>
</rss>

