Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 20 Nov 2001 18:37:48 +0100
From:      "Sven Huster" <sven.huster@mailsurf.com>
To:        <freebsd-questions@FreeBSD.ORG>
Subject:   Re: Dos2Unix
Message-ID:  <114501c171ea$12bbad60$fe00fa0a@venus>
References:  <DBEEJCFFMKHFOCLJLKFBCELFCAAA.ben@alohagrowers.com> <20011120145239.D775@aviion.alfred.cx>

next in thread | previous in thread | raw e-mail | index | archive | help

----- Original Message -----
From: "Andrew Reid" <andrew.reid@plug.cx>
To: "Ben Witkowski" <ben@alohagrowers.com>
Cc: <freebsd-questions@FreeBSD.ORG>
Sent: 20 November, 2001 05:22
Subject: Re: Dos2Unix


> On Mon, Nov 19, 2001 at 07:59:54PM -0800, Ben Witkowski wrote:
>
> > most unix systems have a dos2unix utility that removes the trailing ^M
> > characters from each line.  is there a comprable tool for FreeBSD, or
does
> > anyone know where to find the binaries (or a script) to do the job?
>
> # cd /usr/ports/converters/unix2dos
> # make
> # make install
>

recode should also do the trick:
/usr/ports/converters/recode

% recode MSDOS..Latin-1 <file>

regards
Sven


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?114501c171ea$12bbad60$fe00fa0a>