From owner-freebsd-questions Sun Apr 12 15:22:32 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id PAA11040 for freebsd-questions-outgoing; Sun, 12 Apr 1998 15:22:32 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from dan.emsphone.com (dan@dan.emsphone.com [199.67.51.101]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id PAA11035 for ; Sun, 12 Apr 1998 15:22:27 -0700 (PDT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.8.8/8.8.6) id RAA07818; Sun, 12 Apr 1998 17:22:25 -0500 (CDT) Message-ID: <19980412172225.A7661@emsphone.com> Date: Sun, 12 Apr 1998 17:22:25 -0500 From: Dan Nelson To: Joe Marcus Clarke , George Vagner , FreeBSD User Questions List Subject: Re: ^M remove References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.90.10i In-Reply-To: ; from "Joe Marcus Clarke" on Sun Apr 12 18:07:42 GMT 1998 X-OS: FreeBSD 2.2.6-STABLE Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In the last episode (Apr 12), Joe Marcus Clarke said: > I came across two perl scripts a while back to this (one to remove them > and one to add them). I didn't write them, I just modified them. > They're included. You need perl to use them. Joe, you seem to have forgotten something in that last email :) > On Sun, 12 Apr 1998, George Vagner wrote: > > someone posted a way to remove those pesky > > ^M characters from dos files. > > > > can someone tell me how again please? I remove ^Ms with tr -d "\r" < file1 > file2 A neat way to convert a whole directory tree of files is to zip them up, then unzip them with the -a flag, which does the ASCII conversion. -Dan Nelson dnelson@emsphone.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message