How Do You Check Control Characters in Unix?
Contents Both Grep and Sed Can Search for a Complemented Character Class/Range, Which Will Find Lines Containing Any Character That Is Not a ‘Printable’...
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.
How do I find control characters in Unix?
grep command
grep command allows you to search a string in a file. So run the grep command on the file as shown below to find out and display all the lines where the ^M character is present. To type “^M” – click Ctrl+V and Ctrl+M i.e you can hold the CTRL key and press V and M sequentially.
What are control characters in Unix?
Control characters may be described as doing something when the user inputs them, such as code 3 (End-of-Text character, ETX, ^C ) to interrupt the running process, or code 4 (End-of-Transmission character, EOT, ^D ), used to end text input or to exit a Unix shell.