View Single Post
  #7  
Old December 4th, 2000, 11:19 AM
BenW BenW is offline
Registered User
 
Join Date: Dec 2000
Location: Branford, CT
Posts: 32
Thanks: 0
Thanked 0 Times in 0 Posts
BenW is on a distinguished road
Arrow vi, emacs, and CR-LF

If you're going to attack it with Terminal.app, why not use emacs? It's at least somewhat closer to intuitive than vi.... The simple way of solving your CR-LF/newline problems is to use a perl commandline (or awk, I suppose, but I don't know awk).

To make mac files legible in Terminal I use

<code>perl -pe 's/\r/\n/g' myfilename > mynewfilename</code>

which does the job nicely. Though I think emacs is savvy to the CR-LF problem in any case.

__________________
G4/400(PCI)
448 MB RAM
13G Partitioned:
--9.0 (7.5 GB HFS+)
--OSX/PB (4.5 GB HFS+)
Reply With Quote