LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 01-05-2007, 02:33 PM   #1
dmorse
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,

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

Rep: Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903
man od

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

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


Reply


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 06:10 AM.

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