From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,b8d585e62561fbf8 X-Google-Attributes: gidfee84,public From: Bob Vickers Subject: Re: Unix2Dos Date: 1996/10/29 Message-ID: <3275D781.41C6@dcs.rhbnc.ac.uk>#1/1 X-Deja-AN: 192867696 references: <32746DE4.1E35@pratique.fr> to: duchenne@pratique.fr content-type: text/plain; charset=iso-8859-1 organization: Royal Holloway College, University of London mime-version: 1.0 newsgroups: comp.unix.osf.osf1 x-mailer: Mozilla 3.0 (X11; I; OSF1 V3.2 alpha) 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