Date: Sat, 25 Jul 1998 14:31:19 -0400 From: drifter@stratos.net To: Joe <joe.shevland@horizonti.com>, freebsd-questions@FreeBSD.ORG Subject: Re: Translation Message-ID: <19980725143119.A567@stratos.net> In-Reply-To: <35B7DDB0.A34DC272@horizonti.com>; from Joe on Fri, Jul 24, 1998 at 11:04:49AM %2B1000 References: <35B7DDB0.A34DC272@horizonti.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19980725143119.A567>
