[ Thanks to Jadu for
this link. ]
“Also if you know what to grep for, say in above
example the control character is ^B (hex x02); then you can
directly grep for it like this$ grep ^B /tmp/file.txt
* ^B to be typed as ctrl V and ctrl B
“And to match any non printable characters, here is another way
using grep”