spartacus
23rd May 2002, 14:32
Does somebody know a easy possibilty to view/edit a file in unix in hex mode?
Thanks
Spartacus
Juergen
23rd May 2002, 15:13
Use the unix hd command to display the contents of files in
hexadecimal, octal, decimal, and character formats.
The simplest usage is hd file
For more details use the unix online manual.
Juergen
victor_cleto
23rd May 2002, 15:55
It's possible that you can find such a utility by searching in the web, at least get the source code from a free one for linux and then try to compile it for your SO.
The easiest way will be to ftp the file to a MS OS and then use one of the several [free, with unix/mac/... support] hex editors available for Windows - also found in the web - and then ftp it back again to the server.
spartacus
23rd May 2002, 17:54
Hi thank you both,
hmmm. "hd" seems not to be present on the current system. Is there an other possiblilty?
Remark: I can not compile or insert any program in the system, for which I need this tool.
Greetings
Spartacus
Juergen
23rd May 2002, 18:06
spartacus,
which Unix derivative did you use?
spartacus
23rd May 2002, 18:26
Hi Juergen,
it is a "Digital UNIX V4.0F"
Spartacus
victor_cleto
23rd May 2002, 18:50
I don't think that there is such a utility in UX, at least not to edit anyway, and if don't have the possibility to compile....
You're better by downloading a Unix/Mac/Windows compatible Windows one (already found half a dozen thru google!).
Brendan Shine
23rd May 2002, 20:16
Check and see if you have od or xc on your Unix system (see man pages--if not, try man -k | grep 'hex' to see what commands might be available).
Juergen
24th May 2002, 11:40
Hi spartacus,
I agree with Brendan to use the command "od", because this
must be available on your "Digital Unix" box.
To display files in hexadecimal use
od -x file | more
or
od -X file | more
Juergen
spartacus
24th May 2002, 13:42
Hi all,
thanks a lot, od works.
Greetings
Spartacus