fixing dos/windows files under unix

open in vi

:set ff=unix

re-save the file

Symptoms:

At the bottom of vi:

[noeol][dos]

OR

file is full of ^M ^M ^M garbage

Leave a Reply

Your email address will not be published. Required fields are marked *