Latest LQ Deal: Linux Power User Bundle
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, 03: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, 04:02 PM   #2
LQ 5k Club
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,397
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
man od

--- rod.
Old 01-07-2007, 12:10 AM   #3
Registered: Nov 2001
Location: US
Distribution: Slackware 14.2
Posts: 354

Rep: Reputation: 93
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 07:45 AM
Convert special characters in text file nyk Linux - Software 1 01-05-2005 04:20 PM
inserting/deleting characters into a text file ananthbv Programming 7 07-14-2004 12:40 AM
viewing text in foreign languages h/w Linux - General 8 04-14-2004 10:49 PM
Aterm eror viewing text cav Linux - General 5 04-21-2003 12:19 AM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:30 PM.

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