Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm making a postscript of a bunch of C code, and enscript reports I have 2 non-printable chars

[ 91 pages * 1 copy ] left in a.ps
2 non-printable characters
non-printable character codes (decimal):
128 153

However I couldn't find these chars with grep

grep -r $'\231' *
grep -r $'\200' *

Is there a way to let enscript report which lines contain the non-printable chars?

share|improve this question
Maybe this will provide a clue as to how to handle these. It is not an answer: unix.stackexchange.com/questions/18579/… – Joe Apr 20 '12 at 22:37
Found another clue here. The trick is running the files through hexdump first and searching the output. Also found some things about using echo with an unescaped $ to pass raw data into grep. Bottom line, I'm not sure your original grep was correct. stackoverflow.com/questions/4180081/linux-binary-grep unix.com/shell-programming-scripting/… – Joe Apr 20 '12 at 23:01

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.