![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| OS X (Apple) OS X is a line of Unix-based graphical operating systems developed, marketed, and sold by Apple. |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
vi
I have a file that at some point I removed all ^Ms and now I'm trying to put a newline return where the ^Ms used to be.
I probably removed the ^Ms a few years ago in Linux or SCO Xenix and now I'm using a MAC. With the file opened with vi I have tried the following: :%s/\.[A-Z]/\.^N[A-Z]/g I'm entering the ^N as ctrl-V ctrl-N and the /g is because as the file stands now I have 2 really long lines. The results I'm getting are just the literal ^N[A-Z]. |
| Bookmarks |
| Tags |
| linux, regex, regular expressions |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|