![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| 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 01:09 PM |
| Finding Hidden files and protecting the folder containing hidden files from deletion | pochaw | Shell Programming and Scripting | 4 | 12-22-2007 01:33 AM |
| Hidden Characters | Khoomfire | UNIX for Advanced & Expert Users | 6 | 07-06-2007 04:40 AM |
| missing hidden characters | SUSANR9999 | UNIX for Dummies Questions & Answers | 2 | 11-09-2006 04:30 PM |
| Hidden passwords | neto | Shell Programming and Scripting | 2 | 09-21-2005 01:09 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
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 |
|
||||
|
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.
|
|
||||
|
Presumably you mean \r\n not the other way around.
Code:
perl -i~ -pe 's/\r?\n/\r\n/' file |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|