Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* ftp ascii instead of bin??
@ 1998-08-27  4:00 Mario Zimmermann
  1998-08-27  4:00 ` Stefan Heim
  0 siblings, 1 reply; 3+ messages in thread
From: Mario Zimmermann @ 1998-08-27  4:00 UTC (permalink / raw)


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



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~1998-08-30  4:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-08-27  4:00 ftp ascii instead of bin?? Mario Zimmermann
1998-08-27  4:00 ` Stefan Heim
1998-08-30  4:00   ` Charles M Richmond

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox