[comp.unix.questions] EBCDIC Editor/viewer for unix.

peters@cc.msstate.edu (Frank W. Peters) (07/28/89)

Hello,

    We have occasion here to deal with binary files that contain EBCDIC rather
than ASCII data in their text portions.  There are several editors and viewers
out there that will display the ASCII portions of binary files.  Does anybody
know of any similar editors for UNIX that would display EBCDIC in a similar way?

Thanks
--Frank

========================================================================
| Systems & Networks Programmer      |   Mississippi State University  |
| Phone:    (601) 325-2942           |   Computing Center and Services |
| Internet:  peters@CC.MsState.Edu   |   Post Office Drawer CC         |
| BITNET:    PETERS@MSSTATE.BITNET   |   Mississippi State, MS.  39762 |
========================================================================
"What if I wanna worry?  What if I *like* being unhappy??"

jik@athena.mit.edu (Jonathan I. Kamens) (07/28/89)

  You can run the binary through dd with the option "conv=ascii" to
get it to convert all of the text in the file from EBCDIC to ASCII.  I
don't know what it will do with the binary portions of the file, but I
also don't know if that's important (if the machine you're doing this
on can't read the EBCDIC and deal with it, it probably can't run the
program either, so it probably doesn't matter :-).

  Just typing "dd conv=ascii infile outfile" will convert the EBCDIC
text in infile to ASCII text in outfile.

Jonathan Kamens			              USnail:
MIT Project Athena				432 S. Rose Blvd.
jik@Athena.MIT.EDU				Akron, OH  44320
Office: 617-253-4261			      Home: 216-869-6432

hwt@bnr-public.uucp (Henry Troup) (07/29/89)

In article <20394@adm.BRL.MIL> peters@cc.msstate.edu (Frank W. Peters) writes:
>Hello,
>
>    We have occasion here to deal with binary files that contain EBCDIC rather
>than ASCII data in their text portions.  There are several editors and viewers
>out there that will display the ASCII portions of binary files.  Does anybody
>know of any similar editors for UNIX that would display EBCDIC in a similar way?
I have used a pipeline like:
	dd if=name conf=ascii | xd | more
but I too would be interested in a decent tool to view (even change) EBCDIC
files.
utgpu!bnr-vpa!bnr-fos!hwt%bnr-public | BNR is not 	| All that evil requires
hwt@bnr (BITNET/NETNORTH) 	     | responsible for 	| is that good men do
(613) 765-2337 (Voice)		     | my opinions	| nothing.