Search code examples
grepascii

how to grep ASCII control character


If I have a file containing ASCII control character, for example, ^A (Start of Header).

How can I find it using grep in Linux?


Solution

  • As seen in comments, this solved the issue:

    grep $'\01' file