title: Use variable value as Environment parameter in GoCD
body: <p>I'm trying to write a shell script which read variables from a file and replace that with the Environment variable define in GoCD.</p>
  
  <p>Now the challenge i'm facing is i'm trying to use value of variable as parameter</p>
  
  <p>Below is my script</p>
  
  <pre><code>#!/bin/bash 
  filename="keyword.txt" 
  while IFS="," read f1 f2 f3
  do
          f6="Env_var"
          a="$($f6)"
          echo $a
         # echo "$f1" "$f3"
         # sed -i s|$f1|$($f6)|g /var/lib/go-agent/pipelines/StormCluster-Deploy-2/"$f3".xml
  done &lt; "$filename"
  </code></pre>
  
  <p>Also in GoCD environment variable,i have given
  Env_var = 1234</p>
  
  <p>Now here the script  is giving output
  $Env_var</p>
  
  <p>Where as i want that $Env_var value i.e 1234 define in GoCD as Environment variable should be the output</p>
  
  <p>Kindly help!</p>