With grep you can match control characters like this:
Code:
grep '[[:cntrl:]]'
And non printable characters like this:
Code:
grep '[^[:print:]]'
Another workaround with shells expanding the special construct $'\X' (ksh93, bash, zsh):
Code:
zsh-4.3.4% printf "Hello\tWorld"|grep -l $'\t'
(standard input)
zsh-4.3.4% printf "Hello\tWorld"|grep -l $'\x09'
(standard input)
|