How to remove ^M character

Bill Campbell freebsd at celestial.com
Sat Aug 2 11:37:57 PDT 2003


On Sat, Aug 02, 2003 at 02:49:40PM +0530, Shantanu Mahajan wrote:
>+-- Anil Garg [freebsd] [01-08-03 14:01 +0530]:
>| Hi,
>| 
>| I ftp'd a file from windows to freebsd....not its every line has ^M at its
>| end.
>| Is there some command in vi (or some way) by whcih ^M can be removed.

In the future when doing the transfer, make sure your ftp program is in
text mode, not binary, and it should take care of this conversion.

>| Thanks
>| Anil
>
>	col -bx < oldfile > newfile
>
>	Regards,
>	Shantanu
>_______________________________________________
>freebsd-questions at freebsd.org mailing list
>http://lists.freebsd.org/mailman/listinfo/freebsd-questions
>To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"
>

-- 
Bill
--
INTERNET:   bill at Celestial.COM  Bill Campbell; Celestial Software LLC
UUCP:               camco!bill  PO Box 820; 6641 E. Mercer Way
FAX:            (206) 232-9186  Mercer Island, WA 98040-0820; (206) 236-1676
URL: http://www.celestial.com/

Government is actually the worst failure of civilized man. There has
never been a really good one, and even those that are most tolerable
are arbitrary, cruel, grasping and unintelligent.
        -- H. L. Mencken


More information about the freebsd-questions mailing list