[ale] Turning CR into LF in text file

Dunlap, Randy randy.dunlap at intel.com
Wed Dec 6 12:07:09 EST 2000



> > check this out:
> > http://www.meybohm.de/os/linebreak.html
> > 
> > it works for converting both mac and pc line breaks...
> 
> You can also (if you have the memory for it) load it into 
> emacs, and do a
> replace-string on it.  When queried for what to replace, hit ^Q^M and
> enter, when prompted for what to replace it with, hit ^Q^J and hit
> enter.  The ^Q causes the next character typed to be quoted.

Or use vim (vi iMproved),
:set fileformat=unix
:wq

will save it with conversion and is good for file-at-a-time,
not-so-often usage.
For lots of files, I would make a tr command to do it.

~Randy

--
To unsubscribe: mail majordomo at ale.org with "unsubscribe ale" in message body.





More information about the Ale mailing list