My Profile

Keep Up to Date:
Blog RSS
Blog
Forum RSS
Forum
Post New Topic Post Reply
Posted 1 Year ago
Linda2
Senior Boarder
Posts: 70
graphgraph
User Offline
 
I am in need of a utility to view a file as a series of hexadecimal digits. Any suggestions? Maybe there's a way in Emacs?

Thanks,
The administrator has disabled public write access.
Posted 1 Year ago
biddy
Senior Boarder
Posts: 68
graphgraph
User Offline
 
od -x, maybe?

man od.

Tauno Voipio
The administrator has disabled public write access.
Posted 1 Year ago
groundtwelve
Expert Boarder
Posts: 85
graphgraph
User Offline
 
You can get pretty close with od(1). man od

You might want od -x file I suggest piping it through more or less if it is a big file.

You will get stuff like this:

0000000 683c 6d74 3e6c 683c 6165 3e64 743c 7469 0000020 656c 523e 4346 3120 3938 2033 202d 6e45 0000040 6168 636e 6465 4d20 6961 206c 7953 7473 0000060 6d65 5320 6174 7574 2073 6f43 6564 2e73 0000100 4720 202e 6156 6475 6572 6975 2e6c 2f3c 0000120 6974 6c74 3e65 2f3c 6568 6461 0a3e 2020

The first column is the position in the file, and the rest are short integers cracked into two hex digits. You might need to write a little awk program to delete the first column and to separate the other hex digits, depending on your requirements.
The administrator has disabled public write access.
Posted 1 Year ago
sail4evr
Senior Boarder
Posts: 73
graphgraph
User Offline
 
With emacs use the hexl mode: M-x hexl-mode

Regards, Jens
The administrator has disabled public write access.
Posted 1 Year ago
blueice
Senior Boarder
Posts: 72
graphgraph
User Offline
 
Thanks, I'll try od. That is great, since I can't install the hex editor I found - 'hexedit'. I have SuSe 8.0. When I try to istall the rpm - rpm -i hexedit -1.2.4-1.i386.rpm I get:

error: failed dependencies: libc.so.6(GLIBC_2.3) is needed by hexedit-1.2.4-1

while there exists: /lib/libc.so.6

I guess it's looking for package glibc_2.3 but in SuSE the packages is called just 'glibc'. I don't see any ready way to fix this.

Thanks anyway - I'll give od a try!
The administrator has disabled public write access.
Posted 1 Year ago
laju
Senior Boarder
Posts: 67
graphgraph
User Offline
 
Yes, but which globc is it? Anyway, get an rpm that is FOR YOU!

Why not? The package name is irrelevant, after all! It isn't even asking you for a package, so your invention is self-evidently a hallucination. Why have you decided on this nonexistant objection and then fixated on it?
The administrator has disabled public write access.
Posted 1 Year ago
johngnova
Senior Boarder
Posts: 70
graphgraph
User Offline
 
There's 'hexdump', or you cn use emacs' hexl-mode.
The administrator has disabled public write access.
Posted 1 Year ago
nfdouglas
Senior Boarder
Posts: 69
graphgraph
User Offline
 
Try

od(1) with the -x option

or

hexdump(1) with the -C or -x option

or

xxd(1)
The administrator has disabled public write access.
Posted 1 Year ago
fidofido
Senior Boarder
Posts: 78
graphgraph
User Offline
 
Error log for Thu, 29 May 2003 12:22:05 +0000: segfault in module George Bell - dump details are as follows...

KDE comes with a nifty little GUI Hex Editor named KHexEdit you may want to look at. Chances are that it is already installed if you have KDE.
The administrator has disabled public write access.
Posted 1 Year ago
paydayloan
Senior Boarder
Posts: 65
graphgraph
User Offline
 
hexedit
The administrator has disabled public write access.
Posted 1 Year ago
soumitra
Senior Boarder
Posts: 63
graphgraph
User Offline
 
In emacs, M-x 'hexlify-buffer' works well.
The administrator has disabled public write access.
 
Copyright © 2006 - Nov 2008 My Linux Gang