title: Create md5sum of file parallel to file dump
body: <p>My C program creates output file out.txt.</p>
  
  <p>I've to create md5sum of it.</p>
  
  <p>I know that the command is <code>md5sum out.txt &gt; md5sum.txt</code>.</p>
  
  <p>What I want is not to create whole out.txt and then <code>md5sum out.txt</code>.</p>
  
  <p>I want both operations to run parallely. Md5sum should be created while file is dumped. So that I could save some time.</p>
  
  <p>Something like,</p>
  
  <pre><code>./program &gt; out.txt &amp;
  md5sum out.txt &gt; md5sum.txt &amp;
  wait
  </code></pre>
  
  <p>Is there a valid way to do this ? Please help.</p>