I want to tail a log file in Unix system services on a Mainframe LPAR that needs a ASCII to EBCDIC conversion?

  • Thanks for the information; what is the question? Dec 22, 2016 at 16:39

2 Answers 2

tail /path/to/input | dd conv=ebcdic of=/dev/stdout

Or, to write to a file:

tail /path/to/input | dd conv=ebcdic of=/path/to/output

To convert the other way (EBCDIC to ASCII), use conv=ascii.


Using iconv:

tail /path/to/file | iconv -f ISO8859-1 -t IBM-1047

Not the answer you're looking for? Browse other questions tagged .