Linux Today: Linux News On Internet Time.
Search Linux Today
Linux News Sections:  Developer -  High Performance -  Infrastructure -  IT Management -  Security -  Storage -
Linux Today Navigation
LT Home
Contribute
Contribute
Link to Us
Linux Jobs


More on LinuxToday


Grep and print control characters in file

Dec 04, 2009, 19:01 (0 Talkback[s])

[ 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"

Complete Story

Related Stories: