[vox-tech] using dd to convert ebcdic to ascii?

2013-03-05 Thread Brian Lavender
I have some files I am retrieving from a Mainframe. I am using dd to convert
them to ascii. Is this a good way to convert? The file foo.txt is in 
ebcdic.

dd if=foo.txt of=foo_ascii.txt conv=ascii

brian
-- 
Brian Lavender
http://www.brie.com/brian/

There are two ways of constructing a software design. One way is to
make it so simple that there are obviously no deficiencies. And the other
way is to make it so complicated that there are no obvious deficiencies.

Professor C. A. R. Hoare
The 1980 Turing award lecture
___
vox-tech mailing list
vox-tech@lists.lugod.org
http://lists.lugod.org/mailman/listinfo/vox-tech


Re: [vox-tech] using dd to convert ebcdic to ascii?

2013-03-05 Thread Richard Harke
did you look at info dd?
conv=ascii


On Tue, Mar 5, 2013 at 9:41 AM, Brian Lavender br...@brie.com wrote:

 I have some files I am retrieving from a Mainframe. I am using dd to
 convert
 them to

   `ascii'

  Convert EBCDIC to ASCII, using the conversion table specified

  by POSIX.  This provides a 1:1 translation for all 256 bytes.


 So it sounds very reasonable

Richard


 ascii. Is this a good way to convert? The file foo.txt is in
 ebcdic.

 dd if=foo.txt of=foo_ascii.txt conv=ascii

 brian
 --
 Brian Lavender
 http://www.brie.com/brian/

 There are two ways of constructing a software design. One way is to
 make it so simple that there are obviously no deficiencies. And the other
 way is to make it so complicated that there are no obvious deficiencies.

 Professor C. A. R. Hoare
 The 1980 Turing award lecture
 ___
 vox-tech mailing list
 vox-tech@lists.lugod.org
 http://lists.lugod.org/mailman/listinfo/vox-tech

___
vox-tech mailing list
vox-tech@lists.lugod.org
http://lists.lugod.org/mailman/listinfo/vox-tech