How Do You Grep Control Characters in Unix?
Contents How Do I Find Control Characters in Unix? to Look for Any Control Character Both Grep and Sed Can Search for a Complemented Character Class/Range...
Contents
How do I find control characters in Unix?
To look for any control character
Both grep and sed can search for a complemented character class/range, which will find lines containing any character that is not a ‘printable’ (graphic or space) ASCII character.
Must Read
How do you grep special characters in Unix?
To match a character that is special to grep –E, put a backslash ( ) in front of the character. It is usually simpler to use grep –F when you don’t need special pattern matching.