Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 25 Dec 2001 20:51:01 -0500
From:      "Joe & Fhe Barbish" <barbish@a1poweruser.com>
To:        "Jonathan Chen" <jonc@chen.org.nz>
Cc:        "FBSD Questions" <questions@FreeBSD.ORG>
Subject:   RE: Dos -> Unix end-of-line conversion
Message-ID:  <LPBBIGIAAKKEOEJOLEGOCEGDCKAA.barbish@a1poweruser.com>
In-Reply-To: <20011226113216.A24782@grimoire.chen.org.nz>

next in thread | previous in thread | raw e-mail | index | archive | help
How can I get this command to roll through a directory tree processing all
the files to feed this $ tr -d '\r' < oldfile > newfile  command converting
dos2unix or unix2dos?  There is a dos2unix / unix2dos port but it only does
one file at a time.



-----Original Message-----
From: owner-freebsd-questions@FreeBSD.ORG
[mailto:owner-freebsd-questions@FreeBSD.ORG]On Behalf Of Jonathan Chen
Sent: Tuesday, December 25, 2001 5:32 PM
To: Michal Pasternak
Cc: freebsd-questions@FreeBSD.ORG
Subject: Re: Dos -> Unix end-of-line conversion

On Tue, Dec 25, 2001 at 11:24:41PM +0100, Michal Pasternak wrote:
> Hello,
>
> are there any programs (in baseinstall) which allow that (except perl)?

    $ tr -d '\r' < oldfile > newfile

is one quick and dirty way to do it...
--
Jonathan Chen <jonc@chen.org.nz>
-----------------------------------------------------------------------
"I love deadlines. I like the whooshing sound they make as they fly by"
                                                        - Douglas Adams

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message


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?LPBBIGIAAKKEOEJOLEGOCEGDCKAA.barbish>