From: Bob Vickers <bobv@dcs.rhbnc.ac.uk>
To: duchenne@pratique.fr
Subject: Re: Unix2Dos
Date: 1996/10/29 [thread overview]
Message-ID: <3275D781.41C6@dcs.rhbnc.ac.uk> (raw)
In-Reply-To: 32746DE4.1E35@pratique.fr
Herv=E9 DUCHENNE CRETIER wrote:
> =
> I'm looking for a version of Unix2Dos and Dos2Unix for DUx 3.2 or
> something which can do the same...
> =
> If it's possible, could u answer by an E-Mail
> duchenne@pratique.fr
> =
Here is a simple shell script version of dos2unix. It doesn't preserve
permissions though:
#! /bin/ksh
# convert dos files to Unix by removing carriage returns.
for f in $@
do
tr -d '\015' <$f >${f}+ && mv -i $f ${f}~ && mv -i ${f}+ $f
done
Bob
-- =
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D
Bob Vickers R.Vickers@dcs.rhbnc.ac.uk
Department of Computer Science, Royal Holloway College, University of
London
WWW: http://www.dcs.rhbnc.ac.uk/%7Ebobv/
Phone: +44 1784 443691
next prev parent reply other threads:[~1996-10-29 5:00 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-10-28 5:00 Unix2Dos Herv� DUCHENNE CRETIER
1996-10-29 5:00 ` Bob Vickers [this message]
1996-10-29 5:00 ` Unix2Dos John Normann Hansen
-- strict thread matches above, loose matches on Subject: below --
1996-11-14 5:00 unix2dos John Bringolf
1996-11-19 5:00 ` unix2dos Rich Signell
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox