[lug] Beautify in vi

John Hernandez John.Hernandez at noaa.gov
Thu Mar 29 15:44:43 MST 2001


:%s/^M//g

John Starkey wrote:
> 
> I have several files that I transfered from linux to FreeBSD. On the
> FreeBSD server the command chars are showing up. Mainly ^M. I saw that
> set: beautify is supposed to clean those out. But it isn't and I found
> one doc that says it only does so when reading into a file. I tried
> creating a new file and reading the old one into it. Still no luck.
> 
> Anyone know of something I could do to strip these automatically?
> 
> Thanks,
> 
> John
> 
> _______________________________________________
> Web Page:  http://lug.boulder.co.us
> Mailing List: http://lists.lug.boulder.co.us/mailman/listinfo/lug



More information about the LUG mailing list