title: md5sum validation for a file
body: <p>I have two files <code>hello.txt</code> and <code>hello.txt.md5</code></p>
  
  <p>MD5 output is in the below format</p>
  
  <pre><code>cat hello.txt.md5 
  b1946ac92492d2347c6235b4d2611184
  </code></pre>
  
  <p>I wrote a simple script to validate md5sum.</p>
  
  <pre><code>csum=$(cat hello.txt.md5)
  echo "$csum hello.txt" | md5sum -c
  </code></pre>
  
  <p>This script works fine with <code>Ubuntu 13.10</code> but it throws below error in <code>Ubuntu 12.04</code>.</p>
  
  <blockquote>
    <p>md5sum: standard input: no properly formatted MD5 checksum lines found</p>
  </blockquote>
  
  <p>Can anyone show me how to do this in Ubuntu12.04. </p>