title: run two shell scripts where first requires user input
body: <p>I have two .sh scripts that need to be run in order, where the first requires the user to input a filename. I want to combine them to make a single .sh script that uses both. It is typically run in succession like so:</p>
  
  <pre><code>foo.sh input1 input2
  bar.sh &gt; file.csv
  </code></pre>
  
  <p>They each take about an hour to run. Is there a way to make a command that runs both in a single .sh script so the input looks like this:</p>
  
  <pre><code>newscript.sh input1 input2
  </code></pre>
  
  <p>where the output is:</p>
  
  <pre><code>file.csv
  </code></pre>