![]() |
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 |
| Forum Support Area for Unregistered Users & Account Problems Use this forum if you cannot login to the forums. NO TECHNICAL QUESTIONS - Guest who are not registered or have trouble with registration must post here for admin support. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| SED to convert ~ in a file to newline | ntekupal | Shell Programming and Scripting | 5 | 03-29-2009 11:10 PM |
| newline character | trichyselva | UNIX for Dummies Questions & Answers | 9 | 10-31-2008 01:47 PM |
| replace a newline (\n) | jeter | Shell Programming and Scripting | 3 | 05-18-2008 10:37 PM |
| problem escaping newline in ksh | JamesByars | Shell Programming and Scripting | 7 | 01-05-2008 05:51 PM |
| grep the pattern followed by newline | lalelle | Shell Programming and Scripting | 2 | 08-21-2007 08:02 PM |
![]() |
|
|
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. |
|
||||
|
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, ..) |
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|