How to remove ^M character
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]:
>| I ftp'd a file from windows to freebsd....not its every line has ^M at its
>| 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.
> col -bx < oldfile > newfile
>freebsd-questions at freebsd.org mailing list
>To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"
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
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