Date: Fri, 1 Aug 2003 10:44:22 +0100 From: Philip Payne <philip.payne@uk.mci.com> To: 'Anil Garg' <anilg@niksun.com> Cc: "'questions@freebsd.org'" <questions@freebsd.org> Subject: RE: How to remove ^M character Message-ID: <36D04A8168B2D41182250008C7E6F8780374F9DD@ukcamexch2.cbg.uk.corp.eu.uu.net>
next in thread | raw e-mail | index | archive | help
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. > > Thanks > Anil At the vi command line :1,$:s/<here type ctrl-v then ctrl-M to get the ^M control character// Basically it's just saying from line 1 to end($) search for ctrl-M and replace with nothing. Get this all the time when working with people who write router configs on their windblows machines and send them to me. Phil.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?36D04A8168B2D41182250008C7E6F8780374F9DD>