LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Viewing control characters in a text file (https://www.linuxquestions.org/questions/linux-general-1/viewing-control-characters-in-a-text-file-516691/)

dmorse 01-05-2007 02:33 PM

Viewing control characters in a text file
 
Hello, Could someone please recommend the best way to find special characters in a text file? I have a file that contains some end-of-line characters that we must allow for in an application being developed. I thought this could either be done using vi editor or one of the text-formatting utilities.

Thanks for your help,

Don

theNbomr 01-05-2007 03:02 PM

man od

--- rod.

speck 01-06-2007 11:10 PM

You can use Midnight Commander (mc) to search/view/edit the file. It allows you to view/edit the hex/ascii values at the same time. You should probably determine the hex value(s) in question and then search the file for that value (instead of searching the ascii value).


All times are GMT -5. The time now is 02:53 AM.