EBCDIC to ASCII conversion under ULTRIX
Guy Harris
guy at auspex.auspex.com
Sun Sep 2 11:25:06 AEST 1990
> Before implementing this program, you might check to see if the options
>available on the 'dd' command are suitable for the intented purposes.
Unfortunately, ssome of the other suggestions didn't bother suggesting
doing this check first. From the SunOS 4.0.3 DD(1) (but they all work
this way, and the manuals should all say this):
cbs is used only if ascii, unblock, ebcdic, ibm, or block
conversion is specified. In the first two cases, cbs char-
acters are placed into the conversion buffer, any specified
character mapping is done, trailing blanks trimmed and NEW-
LINE added before sending the line to the output. In the
latter three cases, characters are read into the conversion
buffer, and blanks added to make up an output record of size
cbs.
so that the "ascii" and "ebcdic" and "ibm" options are for converting
between ASCII lines (NL at the end, UNIX lines) and EBCDIC *card
images*. This may or may not be what the original poster wanted....
More information about the Comp.unix.questions
mailing list