Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 2 Aug 2003 11:37:54 -0700
From:      Bill Campbell <freebsd@celestial.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: How to remove ^M character
Message-ID:  <20030802113754.A3344@barryg.mi.celestial.com>
In-Reply-To: <20030802091940.GA687@dhumketu.homeunix.net>; from freebsd@dhumketu.cjb.net on Sat, Aug 02, 2003 at 02:49:40PM %2B0530
References:  <08ca01c35807$4abad740$1e003c0a@niksuntest> <20030802091940.GA687@dhumketu.homeunix.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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@freebsd.org mailing list
>http://lists.freebsd.org/mailman/listinfo/freebsd-questions
>To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"
>

-- 
Bill
--
INTERNET:   bill@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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030802113754.A3344>