From owner-freebsd-questions Mon Jan 11 03:36:59 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id DAA20239 for freebsd-questions-outgoing; Mon, 11 Jan 1999 03:36:59 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from second.dialup.access.net (lsmarso.dialup.access.net [166.84.254.60]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id DAA20218 for ; Mon, 11 Jan 1999 03:36:52 -0800 (PST) (envelope-from larry@marso.com) Received: (from larry@localhost) by second.dialup.access.net (8.9.1/8.8.8) id GAA21604; Mon, 11 Jan 1999 06:32:31 -0500 (EST) (envelope-from larry) Date: Mon, 11 Jan 1999 06:32:31 -0500 From: "Larry S. Marso" To: charon@freethought.org, freebsd-questions@FreeBSD.ORG Subject: Re: replacing ^M in vi Message-ID: <19990111063231.M19337@marso.com> References: <3.0.5.32.19990110225910.00a2f220@mail> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.1i In-Reply-To: <3.0.5.32.19990110225910.00a2f220@mail>; from charon@freethought.org on Sun, Jan 10, 1999 at 10:59:10PM -0800 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I believe one of the mtools apps does this automatically as you copy text files from your freebsd machine to a floppy disk. Best regards -- Larry S. Marso larry@marso.com On Sun, Jan 10, 1999 at 10:59:10PM -0800, charon@freethought.org wrote: > Whenever I save a plain text file in WinNT and open it in FreeBSD, at the > end of every line is a "^M". How do I get rid of these? I tried writing a > little C++ program to copy all text except "^M" to another file, but it > doesn't work because C++ treats the ^ and the M as different characters, > whereas vi treats them as _one_ character. After searching the mailing > list archives, I came up with the syntax ":%s/stuff/other stuff/g" as the > oh-so-intuitive replace command in vi, and I tried it, but to no avail (it > says "no match found"). Any suggestions? Thanks, > > > > Charon@freethought.org > http://members.home.net/tuathadedanann/ > > alt.sex.fetish.hamster.duct-tape > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message