I am grep'ing the output of a command inside shell script and store the result in a variable.
There is a very corner case where this variable might have non-ascii characters because of parse logic used by grep.
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?