title: bash: how do I concatenate the output of two commands so that I can pipe them to a third?
body: <pre><code>$ hg status
  </code></pre>
  
  <p>and </p>
  
  <pre><code>$ hg status --ignored
  </code></pre>
  
  <p>give very similar outputs. I'd like to concatenate them so I can feed them to awk, as if there were an <strong>hg status --all</strong> (or svn's <strong>svn status --no-ignore</strong>)</p>
  
  <p>I'm thinking something like:</p>
  
  <pre><code>$ echo "$(hg status)" "$(hg status --ignored)" | awk  ' ( $1 == "?" ) || ( $1 == "I") { print $2 }' | xargs rm -r
  </code></pre>
  
  <p>to make a 'make very clean indeed' command, but it seems to occasionally leave a file behind, perhaps because a newline goes missing or something.</p>