title: redirect stdout and stderr to a single file with prefixes
body: <p>I am writing a bash script and need to redirect the <code>stdout</code> and <code>stderr</code> output of a command i run to a single file, prefixing each line with <code>stderr</code> or <code>stdout</code>, accordingly.</p>
  
  <p>is there a simple way to do this? </p>