- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Where can I find a tiny HEX editor?
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-12-2003 08:41 AM
тАО12-12-2003 08:41 AM
Where can I find a tiny HEX editor?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-12-2003 08:44 AM
тАО12-12-2003 08:44 AM
Re: Where can I find a tiny HEX editor?
xd > vi help here?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-12-2003 08:55 AM
тАО12-12-2003 08:55 AM
Re: Where can I find a tiny HEX editor?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-12-2003 08:58 AM
тАО12-12-2003 08:58 AM
Re: Where can I find a tiny HEX editor?
vim -b myprog
Then you can do searches and edits. Binary values will be displayed in "^" notation.
HTH
-- Rod Hills
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-12-2003 08:59 AM
тАО12-12-2003 08:59 AM
Re: Where can I find a tiny HEX editor?
http://public.planetmirror.com/pub/hpux/Editors/fm-2.02/
...don;t know how well it works, I've not used it myself....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-12-2003 09:28 AM
тАО12-12-2003 09:28 AM
Re: Where can I find a tiny HEX editor?
Vim requires installing more than I really want to mess with. The key qualities here are the editor be TINY, display ASCII and HEX (side-by-side or every other line), allow for searching & changing data & saving the file, and no install dependencies.
Jim D:
If you haven't tried fm how can you recommend it?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-12-2003 09:55 AM
тАО12-12-2003 09:55 AM
Re: Where can I find a tiny HEX editor?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-12-2003 05:13 PM
тАО12-12-2003 05:13 PM
Re: Where can I find a tiny HEX editor?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-12-2003 07:41 PM
тАО12-12-2003 07:41 PM
Re: Where can I find a tiny HEX editor?
It's based on vi. When you link "data" to "dump" you have a hex dumper like od -x, but IMHO better.
I've used it to edit /dev/mem :)
Enjoy.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-13-2003 04:47 AM
тАО12-13-2003 04:47 AM
Re: Where can I find a tiny HEX editor?
Short,sweet.
I downloaded the source and compiled it, but it's also available from the porting archive
http://hpux.cs.utah.edu/
.
It uses curses and is a screen editor.
Here's a screen shot (ignore the ugly font alignment -- it lines up nicely on a text screen):
---------------------------------------
File: /etc/wtmp
Byte: 0
00 00 00 00 00 00 00 00 00 00 00 00 00 73 79 73 74 ............syst
10 65 6d 20 62 6f 6f 74 00 00 00 00 00 00 02 00 00 em boot.........
20 00 00 00 00 3d 53 d9 2f 00 00 00 00 00 00 00 00 ....=S./........
30 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
40 00 00 00 00 00 00 00 00 72 75 6e 2d 6c 65 76 65 ........run-leve
50 6c 20 33 00 00 00 00 00 00 01 00 33 00 53 00 00 l 3........3.S..
60 3d 53 d9 2f 00 00 00 00 00 00 00 00 00 00 00 00 =S./............
70 00 00 00 00 00 00 00 00 76 78 65 6e 61 62 6c 65 ........vxenable
80 76 78 65 6e 00 00 00 00 00 00 00 00 00 00 00 00 vxen............
90 00 00 00 34 00 05 00 00 00 00 00 00 3d 53 d9 2f ...4........=S./
a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
b0 00 00 00 00 76 78 65 6e 61 62 6c 65 76 78 65 6e ....vxenablevxen
c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 34 ...............4
d0 00 08 00 00 00 00 00 00 3d 53 d9 2f 00 00 00 00 ........=S./....
e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
f0 62 63 68 65 63 6b 72 63 62 72 63 31 00 00 00 00 bcheckrcbrc1....
0 1 2 3 4 5 6 7 8 9 a b c d e f 0123456789abcdef
^f/pgdn=forward ^h/f1=hex ^x/f3=find hex ^u/f5=undo ^g/f7 =goto
^b/pgup=backward ^a/f2=ascii ^t/f4=find ascii ^p/f6=print ^d/f10=done
---------------------------------------
You can edit on either side (i.e., either binary mode or text mode)
bv
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-15-2003 01:45 AM
тАО12-15-2003 01:45 AM
Re: Where can I find a tiny HEX editor?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-15-2003 02:00 AM
тАО12-15-2003 02:00 AM
Re: Where can I find a tiny HEX editor?
Many unix utilities, including vi, use it.
See "man 3 curses_intro"
-- Graham
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-15-2003 02:05 AM
тАО12-15-2003 02:05 AM
Re: Where can I find a tiny HEX editor?
Curses is simply a package to handle screen motions, display and libraries to write applications in termianl mode. It also uses your terminfo files. It's a standard package included in hp-ux, so don't care about it, it's only an information that curses is used. It also means that you don't have to download any other extra package to make fm work ...
Regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-15-2003 02:05 AM
тАО12-15-2003 02:05 AM
Re: Where can I find a tiny HEX editor?
Why not?
# cd /tmp
# gzip -d
# ./data data
Enjoy, Have FUN! H.Merijn
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-15-2003 03:55 AM
тАО12-15-2003 03:55 AM
Re: Where can I find a tiny HEX editor?
As said above, curses is just a library for handling the screen. When you set TERM=xxx, it's usually for programs that use curses (curses is what uses the "terminfo" terminal definitions). Most screen-oriented programs use it -- e.g., 'more', 'less', and 'vi' all use curses.
"H." ;>)
'data' looks pretty good :)
I like the "vi" feel, especially the "mark" feature and the full-screen usage. 'fm' was written back when most screens were 24/5 lines and so only uses a 16-line data area to show a convenient hex100 bytes of data.
However, I don't seem to find an ASCII text input or search mode, both of which 'fm' has. Also, FWIW, 'fm' does not write changes until you change screen, so you've got a whole screens worth of "undo".
Now, I've just got to remember to use it ;>)
bv
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-15-2003 04:00 AM
тАО12-15-2003 04:00 AM
Re: Where can I find a tiny HEX editor?
/'
slash quote
tried :c yet?
Nice built-in calculator
Enjoy, Have FUN! H.Merijn
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-15-2003 05:15 AM
тАО12-15-2003 05:15 AM
Re: Where can I find a tiny HEX editor?
Well, of course I read the 'man' page :>)
-- first thing I did ;>)
Neither "search" nor "find" appear therein and there is no mention of ASCII vs Hex mode :{
Of course, while playing, I *did* find " / " -- just not " /' " .
Hey! I just figured out that "a" and "A" are ASCII input mode!! Great!!
So, :>) , I guess one complaint would be the 'man' page . . . which I don't need, now ;>)
Two more lines in the 'man'page and it'll be well-nigh perfect :>)
BTW, John,
'data' uses curses, as well :>)
bv
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-15-2003 06:12 AM
тАО12-15-2003 06:12 AM
Re: Where can I find a tiny HEX editor?
Procura: I'm sure "data" is a super program you wrote but right now I just needed something quick and rather well known in case I need to ask help from others about how to use it. I probably will explore "data" it in the near future but right now I'm too busy!
Bob Vance: I downloaded and installed "fm" for HP-UX 11.0 and it works fine. If I have a binary on an 11i box I will probably recompile fm for 11i -or- ftp binary to my 11.0, change it there, then ftp it back.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-15-2003 07:35 PM
тАО12-15-2003 07:35 PM
Re: Where can I find a tiny HEX editor?
adb -w toto
0,3?4Xa
0: 0xab123456 12543345 93452 1
10: 13 43 2 4
20: 2 4 55 0xa
16?W 12345678
16: 16256 = 12345678
$q