From owner-freebsd-questions Sat Jul 25 11:57:31 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id LAA16594 for freebsd-questions-outgoing; Sat, 25 Jul 1998 11:57:31 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from home2.stratos.net (home2.stratos.net [209.117.223.3]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id LAA16588 for ; Sat, 25 Jul 1998 11:57:29 -0700 (PDT) (envelope-from drifter@stratos.net) From: drifter@stratos.net Received: from somniac.org [207.86.132.26] by home2.stratos.net with ESMTP (SMTPD32-4.03) id AA762FC0060; Sat, 25 Jul 1998 14:56:54 EDT Received: (from drifter@localhost) by somniac.org (8.8.8/8.8.7) id OAA00603; Sat, 25 Jul 1998 14:31:19 -0400 (EDT) (envelope-from drifter) Message-ID: <19980725143119.A567@stratos.net> Date: Sat, 25 Jul 1998 14:31:19 -0400 To: Joe , freebsd-questions@FreeBSD.ORG Subject: Re: Translation References: <35B7DDB0.A34DC272@horizonti.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.91.1i In-Reply-To: <35B7DDB0.A34DC272@horizonti.com>; from Joe on Fri, Jul 24, 1998 at 11:04:49AM +1000 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Fri, Jul 24, 1998 at 11:04:49AM +1000, Joe wrote: > Hi, > > This is a really easy one I'm sure, but I couldn't find how to specify a > control character. How would I strip unwanted carriage return's from a > text file (dumped from Win)? I gather it's using 'tr'. > > I haven't subscribed to this list yet, so private replies would be good. > Cheers. > > Joe Shevland. I know others will be on the ball with the proper 'tr' command, but I thought I might also direct you to the `mtools' package -- a collection of DOS commands with `m' in front of them, like `mdir'. You might already have this package installed, but if not, go to /usr/ports/emulators/mtools, establish a net connection, and `make all install'. By using `mcopy' instead of mounting, you can provide the -t option to the command and mcopy will do the translation for you automatically both from Win to UNIX and vice versa. Of course, this is not the most general solution and you may already know about this feature. I just thought this might help. -Rob -- drifter@stratos.nospam.net (remove nospam to send) "Am I the only one that cringes every time I hear somebody refer to a disk drive as a 'solution'? It's bad enough I have to listen to that marketing hype from vendors, but now it seems to be infiltrating every-day conversation. I'll decide if that 9GB hard drive is a 'solution' to my problem or not, thank you very much..." To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message