From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,d07ca285c5e05b90,start X-Google-Attributes: gidfee84,public From: Mario Zimmermann Subject: ftp ascii instead of bin?? Date: 1998/08/27 Message-ID: <6s3m8g$q3b$1@news.fr.internet.bosch.de>#1/1 X-Deja-AN: 385265724 Content-Transfer-Encoding: 8bit Organization: The Bosch Group (Robert Bosch GmbH, Germany) Content-Type: text/plain; charset=US-ASCII Mime-Version: 1.0 Newsgroups: comp.unix.osf.osf1 Hello i have a file, which was transmitted using ftp. The problem is, that the file was transmitted unsing ascii instead of binary mode. How can i change this file to the original format? I tried tools like flip (dos2unix) or the following shell script: #! /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 The transmission was between two Digital Unix 4.0d systems. Thanks for your help. Mario e-mail: mario.zimmermann@pcm.bosch.de