Mailing List Archive

Support open source code!


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

RE: tlug: substituting a linefeed in vi



Hi all,

On 26-Jul-98 Jim Schweizer wrote:
 
> I haven't had much luck figuring out how to substitute a DOS
> carriage return with a new linefeed, ASCII code 10, in vi.

Turns out I made a mistake... It's not a DOS file after all but
a MAC file and there aren't any linefeeds.

Jim T. suggested:

"tr '\r' '\n' <infile >outfile"

which works great outside of vi so I guess I'm all set.

Special thanks to the computer science club members over in U of
Waterloo!

Regards,

Jim S.


--------------------------------------------------------------
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