![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Hidden control characters in a Unix Text File! | kewl_guy | Shell Programming and Scripting | 6 | 09-30-2008 10:09 AM |
| Finding Hidden files and protecting the folder containing hidden files from deletion | pochaw | Shell Programming and Scripting | 4 | 12-21-2007 10:33 PM |
| Hidden Characters | Khoomfire | UNIX for Advanced & Expert Users | 6 | 07-06-2007 01:40 AM |
| missing hidden characters | SUSANR9999 | UNIX for Dummies Questions & Answers | 2 | 11-09-2006 01:30 PM |
| Hidden passwords | neto | Shell Programming and Scripting | 2 | 09-21-2005 10:09 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
hidden Characters
Hello All,
I'm trying to parse through a file and display all the hidden characters, including all carriage and line returns. I usually use cat -v, but this doesn't display the carriage and line returns. Does anyone know how this can be done? Thanks Khoom |
| Forum Sponsor | ||
|
|
|
#2
|
|||
|
|||
|
od or hexdump or xxd perhaps?
|
|
#3
|
|||
|
|||
|
Era, all those help me to view the hidden characters. However in this case I'd also like to insert a newline or a carriage return, that's why I need an editor that will enable me both to view and to edit this file.
|
|
#4
|
|||
|
|||
|
Just to clarify things - I have a file with all the lines ending with \n\r when viewed with od -c. However, one line ends with just \n. I'd like to insert the \r character because the file is failing to process because of this missing character.
|
|
#5
|
|||
|
|||
|
Presumably you mean \r\n not the other way around.
Code:
perl -i~ -pe 's/\r?\n/\r\n/' file |
|
#6
|
|||
|
|||
|
Cheers Era
|
|||
| Google The UNIX and Linux Forums |