Mailing List Archive

Support open source code!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

tlug: substituting a linefeed in vi



Hi all,

I haven't had much luck figuring out how to substitute a DOS
carriage return with a new linefeed, ASCII code 10, in vi.
Something along the lines of

:1,$ s/^M/?/

where ? is the linefeed. Can this be done?

Thanks,

Jim S.



----------------------------------
Jim Schweizer <schweiz@example.com>
I'd rather be a node in a network
 Then a cog in the gear of a machine.
A node is involved with things to resolve,
 While a cog must mesh with cogs in between.
http://tlug.linux.or.jp/~jims/
----------------------------------
--------------------------------------------------------------
Next Meeting: 8 August, Tokyo Station Yaesu central gate 12:30
featuring Linux on multiple platforms:
i386, Sparc, PA-Risc, Amiga, SGI, Alpha, PalmPilot, ...
Next Nomikai: September, 19:30 Tengu TokyoEkiMae 03-3275-3691
--------------------------------------------------------------
Sponsor: PHT, makers of TurboLinux http://www.pht.co.jp


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links