Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 01-05-2007, 02:33 PM   #1
LQ Newbie
Registered: Feb 2005
Posts: 5

Rep: Reputation: 0
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,

Old 01-05-2007, 03:02 PM   #2
LQ 5k Club
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,396
Blog Entries: 2

Rep: Reputation: 905Reputation: 905Reputation: 905Reputation: 905Reputation: 905Reputation: 905Reputation: 905Reputation: 905
man od

--- rod.
Old 01-06-2007, 11:10 PM   #3
Registered: Nov 2001
Location: California
Distribution: Slackware 14.1
Posts: 302

Rep: Reputation: 63
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).


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Clearing control characters from a text file LinuxLala Linux - General 1 04-07-2006 06:45 AM
Convert special characters in text file nyk Linux - Software 1 01-05-2005 03:20 PM
inserting/deleting characters into a text file ananthbv Programming 7 07-13-2004 11:40 PM
viewing text in foreign languages h/w Linux - General 8 04-14-2004 09:49 PM
Aterm eror viewing text cav Linux - General 5 04-20-2003 11:19 PM

All times are GMT -5. The time now is 09:01 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration