title: combine one line statements into a single script
body: <p>I am trying to get 3 separate single line commands to run one after the other, but am unable to get this to work if they are all in the same shell.sh file.</p>
  
  <pre><code>awk 'Command #1 1' input.txt &gt; output.txt
  awk 'Command #2 1' input.txt &gt; output.txt
  awk 'Command #3 1' input.txt &gt; output.txt
  </code></pre>
  
  <p>Above is an example of what I will have in shell.sh, and I am only able to achieve this using 3 separate files, when I need these to all work in a single file. </p>
  
  <p>In my example I want a single input file to have 3 commands run against it to produce a single output file.</p>
  
  <p>I am not sure if I am able to combine using <code>&gt;&gt;</code>, <code>|</code>, or <code>&amp;&amp;</code>, but all tries have given poor results.</p>