Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 25 Dec 2001 21:15:37 -0500
From:      "Joe & Fhe Barbish" <barbish@a1poweruser.com>
To:        "Dave" <dah@hauan.org>
Cc:        "FBSD Questions" <questions@FreeBSD.ORG>
Subject:   RE: Dos -> Unix end-of-line conversion
Message-ID:  <LPBBIGIAAKKEOEJOLEGOCEGFCKAA.barbish@a1poweruser.com>
In-Reply-To: <3C28C0EE.BC8EDFE4@hauan.org>

next in thread | previous in thread | raw e-mail | index | archive | help
I want to roll the /etc/ tree files with all kinds of txt files but text in
content only, not in file names, and convert them in mass on there way to
the floppy drive that's going to a windows sys. How can I do this on the
command line?


-----Original Message-----
From: owner-freebsd-questions@FreeBSD.ORG
[mailto:owner-freebsd-questions@FreeBSD.ORG]On Behalf Of Dave
Sent: Tuesday, December 25, 2001 1:10 PM
To: Joe & Fhe Barbish
Cc: Jonathan Chen; FBSD Questions
Subject: Re: Dos -> Unix end-of-line conversion

Joe & Fhe Barbish wrote:
>
> 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.
>
unix2dos *.txt will do all textfiles.
If you can't see it with less or more
vi will show you.

dave

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