title: Remove non-ascii characters from a variable in shell script
body: <p>I am grep'ing the output of a command inside shell script and store the result in a variable.</p>
  
  <p>There is a very corner case where this variable might have non-ascii characters because of parse logic used by grep.</p>
  
  <p>Question: How do I remove these non-ascii characters from this variable inside the shell script, so that I can use the variable in the subsequent commands?</p>