title: Call one shell script from another script and store that output of that script in a variable
body: <p>I have shell script1 <code>1.sh</code>. I have another shell script <code>2.sh</code> where I need to use the functionality of the first script and store it in a variable to use in the second script.</p>
  
  <p>None of these seem to work:</p>
  
  <pre><code>a=$(sh 1.sh)
  a=sh 1.sh
  a=`sh 1.sh`
  </code></pre>