title: How to remove extra white pace along with "-" from a variable
body: <p>I have a variable </p>
  
  <pre><code>sha=10d212d1abec0222ac00f2dd728ef98de7e4a36e5f0832ccb445f15697ce0419 -
  </code></pre>
  
  <p>My question is How to remove extra white space along with - from that variable</p>
  
  <p>Using shell commands How to do that?</p>
  
  <p>Actual:</p>
  
  <pre><code>  10d212d1abec0222ac00f2dd728ef98de7e4a36e5f0832ccb445f15697ce0419 -
  </code></pre>
  
  <p>Expected:       </p>
  
  <pre><code>  10d212d1abec0222ac00f2dd728ef98de7e4a36e5f0832ccb445f15697ce0419
  </code></pre>