You can use cat -v or –show-nonprinting options to display ^ and M- notation wherever a non-printable character appears, except for LFD and TAB.
1 2 3 4 5 6 7 8 9 10 |
## adds a non-printing charecter to the file echo -e "Example non-printable charecter: \004" > myfile ## Displays ^ where the non-printing charecter appaers cat -v myfile ## Returns Example non-printable charecter: ^ ## Without any options cat myfile ## Returns Example non-printable charecter: |