title: Regex to remove junk from a .txt file in Unix
body: <p>I am new to Unix.
  I am using a sed command to remove junk from a .txt file in Unix.
  This is the command that i used--</p>
  
  <pre><code>sed -e 's/[^ -~]//g' final.txt &gt; file1_now
  </code></pre>
  
  <p>but here i am facing a problem the junks are getting removed, but in case my data contains a '-' that is also removed. I dont want that.</p>
  
  <p>Appreciate your help.</p>
  
  <p>Thanks,
  Binayak</p>