From owner-freebsd-questions Sun Nov 4 0:16:40 2001 Delivered-To: freebsd-questions@freebsd.org Received: from chmls20.mediaone.net (chmls20.mediaone.net [24.147.1.156]) by hub.freebsd.org (Postfix) with ESMTP id 4A59237B409 for ; Sun, 4 Nov 2001 00:16:35 -0800 (PST) Received: from sickness (h0000c0f0bdd0.ne.mediaone.net [24.128.40.215]) by chmls20.mediaone.net (8.11.1/8.11.1) with ESMTP id fA48HWx21555 for ; Sun, 4 Nov 2001 03:17:32 -0500 (EST) From: "David Loszewski" To: Subject: RE: ^M on end of lines Date: Sun, 4 Nov 2001 03:15:40 -0500 Message-ID: <001a01c16508$e4623670$3000a8c0@sickness> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.2627 In-Reply-To: <169116798405.20011103214209@telus.net> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Importance: Normal 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 How bout if I wanna do it directories at a time? Like a whole bunch of directories? Dave -----Original Message----- From: Sean Ellis [mailto:sellis@telus.net] Sent: Sunday, November 04, 2001 12:42 AM To: freebsd-questions@freebsd.org Cc: David Loszewski Subject: Re: ^M on end of lines 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