title: Rename files to md5 sum + extension (BASH)
body: <p>I need some help with a bash script. Script needs to rename all files in a directory to its md5 sum + extension.</p>
  
  <p>I have found the bash script below, but it needs to be changed so that it will add the extension.</p>
  
  <pre><code>md5sum * | sed 's/^\(\w*\)\s*\(.*\)/\2 \1/' | while read LINE; do mv $LINE; done
  </code></pre>