From owner-freebsd-questions@FreeBSD.ORG Sat Aug 28 00:44:17 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AC4CE16A4CE for ; Sat, 28 Aug 2004 00:44:17 +0000 (GMT) Received: from mta10.adelphia.net (mta10.adelphia.net [68.168.78.202]) by mx1.FreeBSD.org (Postfix) with ESMTP id 575A543D69 for ; Sat, 28 Aug 2004 00:44:17 +0000 (GMT) (envelope-from parv@chvlva.adelphia.net) Received: from default.chvlva.adelphia.net ([69.160.71.53]) by mta10.adelphia.netESMTP <20040828004416.CLAH9204.mta10.adelphia.net@default.chvlva.adelphia.net>; Fri, 27 Aug 2004 20:44:16 -0400 Received: by default.chvlva.adelphia.net (Postfix, from userid 1000) id D6F595840; Fri, 27 Aug 2004 20:46:18 -0400 (EDT) Date: Fri, 27 Aug 2004 20:46:18 -0400 From: Parv To: Soo-Hyun Choi Message-ID: <20040828004618.GA2856@moo.holy.cow> Mail-Followup-To: Soo-Hyun Choi , freebsd-questions@freebsd.org References: <34b425c50408271652314776b1@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <34b425c50408271652314776b1@mail.gmail.com> cc: freebsd-questions@freebsd.org Subject: Re: vi editor related question X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: f-questions List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 Aug 2004 00:44:17 -0000 in message <34b425c50408271652314776b1@mail.gmail.com>, wrote Soo-Hyun Choi thusly... > > I edit ... certain text editor under Windows XP, and then I open > ... using vi editor under FreeBSD. Then, there are bunch of "^M" > sign at the end of each line. Does anyone know why this is > happening? Cause is the default line ending on Windows being different than on Unix/FreeBSD. > And, does anyone can tell me how to avoid this kind of things? Use an editor on Windows that saves the file as w/ Unix line ending. Or, use an editor on FreeBSD, like vim 6 from the ports, that will hide/change '^M' characters. Other methods is to preprocess your files... http://groups.google.com/groups?q=remove+%5EM+file http://groups.google.com/groups?q=remove+%5EM+group%3Acomp.* - Parv --