From owner-freebsd-questions Mon Jan 11 00:09:16 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id AAA26575 for freebsd-questions-outgoing; Mon, 11 Jan 1999 00:09:16 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from frontier.netnology.com.au (frontier.netnology.com.au [203.33.30.19]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id AAA26566 for ; Mon, 11 Jan 1999 00:09:11 -0800 (PST) (envelope-from craig@hotmix.com.au) Received: from superbruce (superbruce.netnology.com.au [203.33.30.10]) by frontier.netnology.com.au (8.8.7/8.8.7) with SMTP id QAA18793; Mon, 11 Jan 1999 16:37:10 +0800 From: Craig Beasland To: Cc: "'FreeBSD Questions List'" Subject: RE: replacing ^M in vi Date: Mon, 11 Jan 1999 16:14:20 +0800 Message-ID: <001401be3d39$ce142710$0a1e21cb@superbruce.hotmix.com.au> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook 8.5, Build 4.71.2173.0 X-Mimeole: Produced By Microsoft MimeOLE V4.72.2106.4 In-Reply-To: <3.0.5.32.19990110225910.00a2f220@mail> Importance: Normal Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi there, not a BSD solution, but there is a program called Super NoteTab for Windows which will allow you to save in the UNIX format. Dont let the name put you off it really is pretty good, especially when you have samba and notetab editing files directly off you web server. www.notetab.com cheers craig -----Original Message----- From: owner-freebsd-questions@FreeBSD.ORG [mailto:owner-freebsd-questions@FreeBSD.ORG]On Behalf Of charon@freethought.org Sent: Monday, 11 January 1999 15:08 To: questions@FreeBSD.ORG Subject: replacing ^M in vi 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