Bloggers Wanted
We're looking for people to help with the main blog. If you are consistent, knowledgeable and you're into it, please drop me a note.
|
|
|
|
|
Linda2
Senior Boarder
Posts: 70
|
|
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. |
biddy
Senior Boarder
Posts: 68
|
|
od -x, maybe?
man od.
Tauno Voipio
|
|
The administrator has disabled public write access. |
groundtwelve
Expert Boarder
Posts: 85
|
|
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. |
sail4evr
Senior Boarder
Posts: 73
|
|
With emacs use the hexl mode: M-x hexl-mode
Regards, Jens
|
|
The administrator has disabled public write access. |
blueice
Senior Boarder
Posts: 72
|
|
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. |
laju
Senior Boarder
Posts: 67
|
|
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. |
johngnova
Senior Boarder
Posts: 70
|
|
There's 'hexdump', or you cn use emacs' hexl-mode.
|
|
The administrator has disabled public write access. |
nfdouglas
Senior Boarder
Posts: 69
|
|
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. |
fidofido
Senior Boarder
Posts: 78
|
|
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. |
paydayloan
Senior Boarder
Posts: 65
|
|
hexedit
|
|
The administrator has disabled public write access. |
soumitra
Senior Boarder
Posts: 63
|
|
In emacs, M-x 'hexlify-buffer' works well.
|
|
The administrator has disabled public write access. |
|
|
|