![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| To remove carriage return between the line | shash | UNIX for Dummies Questions & Answers | 5 | 07-31-2007 09:12 AM |
| Carriage Return at end of file | bd_joy | Shell Programming and Scripting | 14 | 10-20-2006 10:20 AM |
| Removing Carriage Return and or line feed from a file | tbone231 | Shell Programming and Scripting | 1 | 02-18-2005 01:37 PM |
| carriage return/line feeds | pitstop | Shell Programming and Scripting | 4 | 11-24-2003 12:47 PM |
| Regex to pick up name from the following including carriage return at end of the line | Shakey21 | Shell Programming and Scripting | 3 | 07-18-2002 05:27 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
I am doing some edi where translations had to be run on unix. Generally when I run the translations on windows, the output file has both carriage returns and line feed where as when ran on unix will have only line feed. I need to insert carriage return before the line feed. Is there some tool that or script that I can use to do this?
|
| Forum Sponsor | ||
|
|
|
#2
|
||||
|
||||
|
You can use either unix2dos or something similar, depending on your system.
|
|
#3
|
||||
|
||||
|
Here ya go
If you're doing your editing in vi, you can :set ff=dos
if you need to batch process a bunch of files, you can do this: Code:
perl -i -pe 's/$/\r/' <file> <another file> Code:
perl -i -pe 's/$/\r/' `/bin/ls` There's probably a way of doing that with sed also, but I'm new-skool Last edited by vertigo23; 08-05-2005 at 10:34 AM. |
||||
| Google The UNIX and Linux Forums |