<?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 How to set dynamically a variable in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-set-dynamically-a-variable/m-p/5144528#M453322</link>
    <description>Hi&lt;BR /&gt;&lt;BR /&gt;Huh, here a small affair. &lt;BR /&gt;&lt;BR /&gt;I've the command:&lt;BR /&gt;grep -i OHOME= $(find /su01 -name attachHome.sh  | grep -v Templates)&lt;BR /&gt;&lt;BR /&gt;This return a result like this:&lt;BR /&gt;OHOME=/su01/app/oracle/product/10.1.2&lt;BR /&gt;&lt;BR /&gt;How to execute the result. In fact I'd like to set OHOME with /su01/app/oracle/product/10.1.2&lt;BR /&gt;&lt;BR /&gt;If i do something like that:&lt;BR /&gt;$(grep -i OHOME= $(find /su01 -name attachHome.sh  | grep -v Templates))&lt;BR /&gt;I've the error&lt;BR /&gt;ksh: OHOME=/su01/app/oracle/product/10.1.2:  not found.&lt;BR /&gt;&lt;BR /&gt;How to to this ?&lt;BR /&gt;&lt;BR /&gt;Bests Regards&lt;BR /&gt;Den&lt;BR /&gt;</description>
    <pubDate>Wed, 03 Dec 2008 16:37:47 GMT</pubDate>
    <dc:creator>Leo The Cat</dc:creator>
    <dc:date>2008-12-03T16:37:47Z</dc:date>
    <item>
      <title>How to set dynamically a variable</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-set-dynamically-a-variable/m-p/5144528#M453322</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;Huh, here a small affair. &lt;BR /&gt;&lt;BR /&gt;I've the command:&lt;BR /&gt;grep -i OHOME= $(find /su01 -name attachHome.sh  | grep -v Templates)&lt;BR /&gt;&lt;BR /&gt;This return a result like this:&lt;BR /&gt;OHOME=/su01/app/oracle/product/10.1.2&lt;BR /&gt;&lt;BR /&gt;How to execute the result. In fact I'd like to set OHOME with /su01/app/oracle/product/10.1.2&lt;BR /&gt;&lt;BR /&gt;If i do something like that:&lt;BR /&gt;$(grep -i OHOME= $(find /su01 -name attachHome.sh  | grep -v Templates))&lt;BR /&gt;I've the error&lt;BR /&gt;ksh: OHOME=/su01/app/oracle/product/10.1.2:  not found.&lt;BR /&gt;&lt;BR /&gt;How to to this ?&lt;BR /&gt;&lt;BR /&gt;Bests Regards&lt;BR /&gt;Den&lt;BR /&gt;</description>
      <pubDate>Wed, 03 Dec 2008 16:37:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-set-dynamically-a-variable/m-p/5144528#M453322</guid>
      <dc:creator>Leo The Cat</dc:creator>
      <dc:date>2008-12-03T16:37:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to set dynamically a variable</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-set-dynamically-a-variable/m-p/5144529#M453323</link>
      <description>from what I can see here, something like:&lt;BR /&gt;&lt;BR /&gt;a=$(grep -i OHOME= $(find /su01 -name attachHome.sh | grep -v Templates))&lt;BR /&gt;eval $a&lt;BR /&gt;$OHOME&lt;BR /&gt;&lt;BR /&gt;might be close&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 03 Dec 2008 17:00:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-set-dynamically-a-variable/m-p/5144529#M453323</guid>
      <dc:creator>OldSchool</dc:creator>
      <dc:date>2008-12-03T17:00:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to set dynamically a variable</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-set-dynamically-a-variable/m-p/5144530#M453324</link>
      <description>Oldschool's respons is efficient !&lt;BR /&gt;&lt;BR /&gt;Thanks a lot. &lt;BR /&gt;Bests Regards</description>
      <pubDate>Wed, 03 Dec 2008 18:10:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-set-dynamically-a-variable/m-p/5144530#M453324</guid>
      <dc:creator>Leo The Cat</dc:creator>
      <dc:date>2008-12-03T18:10:30Z</dc:date>
    </item>
  </channel>
</rss>

