![]() |
|
|
|||||||
| Home | Forums | Register | Rules & FAQ | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| Forum Support Area for Unregistered Users & Account Problems NO TECHNICAL QUESTIONS - Users Who Are Not Registered May Contact Us Here. Also, Use this Forum if You Cannot Login to Contact Us. |
Other UNIX.COM Threads You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| replace a newline (\n) | jeter | Shell Programming and Scripting | 3 | 05-18-2008 07:37 PM |
| newline character | trichyselva | UNIX for Dummies Questions & Answers | 1 | 03-31-2008 02:34 AM |
| problem escaping newline in ksh | JamesByars | Shell Programming and Scripting | 7 | 01-05-2008 01:51 PM |
| grep the pattern followed by newline | lalelle | Shell Programming and Scripting | 2 | 08-21-2007 05:02 PM |
| SED to convert ~ in a file to newline | ntekupal | Shell Programming and Scripting | 4 | 05-07-2007 10:46 PM |
![]() |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
|||
|
newline
I have an old file originally created in vi but read and saved by a word processor at some point.
I have ^Ms and know how to substitute them for anything I wish but I still only have one long line when viewed in vi. So I suppose I need to substitute a newline for each ^M but I don't know the code to use. Shouldn't make any difference but I'm using vi in MAC OSX Leopard. |
| Forum Sponsor | ||
|
|
|
|||
|
i) Open this file in some word processor or advanced text editor. Select "unix newlines", "unix charset", "unix style" or something like that in the "Save as"-dialog when saving.
ii) use some script like dos2unix (dostounix, dos2ux, ..) |
![]() |
| Thread Tools | |
| Display Modes | |
|
|