title: extract variable's value from script file in Install Anywhere
body: <p>I am using Install Anywhere 2012 and would like to be able to parse a batch or shell script for a give value and have that value stored in an IA variable.  For instance, if I have the following shell file:</p>
  
  <pre><code>MY_VAR1=123
  MY_VAR2=a\b\c
  ECHO $MY_VAR1
  </code></pre>
  
  <p>I would like to pass in the path to the file and the variable name (ex. MY_VAR1) and have the result, 123, stored in an IA variable of my choosing (lets say $OUTPUT$).  I could achieve this through writing some java custom code but was wondering if there was an alternative approach built into IA that would make this much easier.  The variable will not be initialized when I need to figure out its value so essentially just echoing it's value or something similar will not work.  Any help would be greatly appreciated!</p>