title: command 'md5sum' without '-'token at the end
body: <p>i want to hash the content of an textfile with md5 in a new seperate textfile. And this for each line. I wrote the following bash-script for this</p>
  
  <pre><code>#!/bin/bash
  while read line; do echo -n $line|md5sum; done &lt; $1 &gt; $1.hash
  </code></pre>
  
  <p>This works fine. But with </p>
  
  <pre><code>echo -n 'somewords' | md5sum 
  </code></pre>
  
  <p>my output is something like this <code>8bf1072ac725ca3bc7f532079dd973ba  -</code>
  And i want my output without the - at the end. So my script should give me something like this:</p>
  
  <pre><code>hash 1
  hash 2
  hash 3
  </code></pre>
  
  <p>and not</p>
  
  <pre><code>hash 1  -
  hash 2  -
  hash 3  -
  </code></pre>