From owner-freebsd-questions Sun Nov 4 7:19:43 2001 Delivered-To: freebsd-questions@freebsd.org Received: from wintermute.at.org (wintermute.at.org [64.69.77.155]) by hub.freebsd.org (Postfix) with ESMTP id 50A0A37B406 for ; Sun, 4 Nov 2001 07:19:40 -0800 (PST) Received: from barney.intergate.ca (bambam [216.232.226.47]) by wintermute.at.org (8.11.3/8.11.3) with ESMTP id fA48gL905941 (using TLSv1/SSLv3 with cipher EDH-RSA-DES-CBC3-SHA (168 bits) verified OK) for ; Sun, 4 Nov 2001 08:42:32 GMT Received: from FRED (fred [192.168.2.1]) by barney.intergate.ca (8.11.3/8.11.3) with ESMTP id fA46dbr04624; Sat, 3 Nov 2001 22:39:37 -0800 Date: Sat, 3 Nov 2001 21:42:09 -0800 From: Sean Ellis X-Mailer: The Bat! (v1.51) Reply-To: Sean Ellis Organization: yes X-Priority: 3 (Normal) Message-ID: <169116798405.20011103214209@telus.net> To: freebsd-questions@FreeBSD.ORG Cc: David Loszewski Subject: Re: ^M on end of lines In-Reply-To: <20011103210452.A44499-100000@localhost> References: <20011103210452.A44499-100000@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 1.3 (www dot roaringpenguin dot com slash mimedefang) Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hello David, Saturday, November 03, 2001, 9:05:23 PM, you wrote: > On Sat, 3 Nov 2001, David Loszewski wrote: >> So then how do I strip it of the '^M's then? > You can remove the ^M's from a file with: > perl -pi -e 's/\cM//g' filename or open the file with vim. You should see '[dos]' in the status line. Type :set fileformat=unix and save your new de-^M'ed file. Or do tr -d '\015' < file > newfilename from the command line, -- Best regards, Sean mailto:sellis@telus.net To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message