[comp.org.decus] ebcdic

aad#@ANDREW.CMU.EDU (Anthony A. Datri) (06/01/87)

Such a translator should be very simple to write.  Now,
if they were running unix, all they'd have to do is come
up with the appropriate tr command line.  Dig up a
conversion table and write a C program that consists 
basically of a couple fopens and a switch

pdb@sei.cmu.edu (Patrick Barron) (06/01/87)

In article <8706011216.AA12964@ucbvax.Berkeley.EDU> aad#@ANDREW.CMU.EDU (Anthony A. Datri) writes:
>Such a translator should be very simple to write.  Now,
>if they were running unix, all they'd have to do is come
>up with the appropriate tr command line.  Dig up a
>conversion table and write a C program that consists 
>basically of a couple fopens and a switch


Ahh, much easier than that.  All you need to do is:

   dd if=<input file> of=<output file> conv=ebcdic  (converts ASCII to EBCDIC)

                    "                  conv=ascii   (converts EBCDIC to ASCII)

--Pat.