title: Add prefix in bash command output
body: <p>I would like to add a prefix in each new line of my command output.</p>
  
  <p>I would like to do this because I will run multiple commands in parralel whiches will log in same output log.</p>
  
  <p>I tried to do this with AWK without success</p>
  
  <pre><code>runcommand1 | "[prefix1]" + log &gt; logfile &amp;
  runcommand2 | "[prefix2]" + log &gt; logfile &amp;
  </code></pre>
  
  <p>The result log would be</p>
  
  <pre><code>[prefix1] bla bla
  [prefix2] blo blo blo
  [prefix1] other bla
  [prefix1] other bla
  [prefix2] other blo blo
  </code></pre>