title: remove (STDIN)= label in BASH
body: <p>i am having a problem with (STDIN)</p>
  
  <p>i have written the following bash script to calculate the sha1 hash of a string and output it in upper-case formatted ready for copying into a plist file for example.</p>
  
  <p>here is the script :-</p>
  
  <pre><code>#!/bin/bash        
  
  echo 'Enter String :-';    
  
  read temp_var1;                                          #Read string
  
  hash=$(echo -n $temp_var1 | openssl sha1);               #Copy hash into variable $hash
  
  uphash=$(echo $hash | tr '[:lower:]' '[:upper:]';);      #Convert hash to Upper-case
  
  echo 'Below is the UPPERCASE SHA1 Hash of your string';
  
  echo '  &lt;/yourHash&gt;'$uphash'&lt;/yourHash&gt;';                #Echo formatted string
  </code></pre>
  
  <p>This whole script works well apart for one key problem.
  the output is not what i want it to be. 
  for example with an input of </p>
  
  <pre><code>Hello, World!
  </code></pre>
  
  <p>i want to get the following output:-</p>
  
  <pre><code>Below is the UPPERCASE SHA1 Hash of your string
  &lt;/yourHash&gt;0A0A9F2A6772942557AB5355D76AF442F8F65E01&lt;/yourHash&gt;
  </code></pre>
  
  <p>instead what i am getting is this :-</p>
  
  <pre><code>Below is the UPPERCASE SHA1 Hash of your string
  &lt;/yourHash&gt;(STDIN)= 0A0A9F2A6772942557AB5355D76AF442F8F65E01&lt;/yourHash&gt;
  </code></pre>
  
  <p>my question is. How do i remove this (STDIN)= lable and the space that follows it? </p>
  
  <p>many thanks in advance for any help you can offer.</p>
  
  <p>MiRAGE</p>