You can also use dd:$ iconv -f EBCDIC-US -t ASCII EBCDICinput > ASCIIoutput
Though I've found the first one (iconv) will keep pipe characters as "|", and the second (dd) will have them as "!" in the ASCII output file.$ dd if=EBCDICinput of=ASCIIoutput conv=ascii $ file -i EBCDICinput EBCDICinput : text/plain; charset=iso-8859-1 $ file ASCIIoutput ASCIIoutput: ASCII text, with very long lines, with no line terminators
OMG! Somebody still has to work with EBCDIC?
ReplyDelete