![]() |
![]()
| ![]() |
![]()
NAMEhexedit - view and edit files in hexadecimal or in ASCII SYNOPSIShexedit [-s | --sector] [-m | --maximize] [-l<n> | --linelength <n>] [-h | --help] [filename] DESCRIPTIONhexedit shows a file both in ASCII and in hexadecimal. The file can be a device as the file is read a piece at a time. You can modify the file and search through it. OPTIONS
COMMANDS (quickly)Moving<, > : go to start/end of the file Right: next character Left: previous character Down: next line Up: previous line Home: beginning of line End: end of line PUp: page forward PDown: page backward MiscellaneousF2: save F3: load file F1: help Ctrl-L: redraw Ctrl-Z: suspend Ctrl-X: save and exit Ctrl-C: exit without saving Tab: toggle hex/ascii Return: go to Backspace: undo previous character Ctrl-U: undo all Ctrl-S: search forward Ctrl-R: search backward Cut&PasteCtrl-Space: set mark Esc-W: copy Ctrl-Y: paste Esc-Y: paste into a file Esc-I: fill COMMANDS (full and detailed)o Right-Arrow, Left-Arrow, Down-Arrow,
Up-Arrow - move the cursor.
For the Esc commands, it sometimes works to use Alt
instead of Esc. Funny things here (especially for froggies :) egrave
= Alt+H , ccedilla = Alt+G, Alt+Y = ugrave.
ModelineAt the bottom of the display you have the modeline (copied from
emacs). As in emacs, you have the indications --, ** and %% meaning
unmodified, modified and read-only. Then you have the name of the file
you're currently editing. Next to it is the current position of the cursor
in the file followed by the total file size. The total file size isn't quite
correct for devices.
EditingYou can edit in ASCII or in hexadecimal. You can switch between
the two with Tab. When the file is read-only, you can't edit it. When
trying to edit a read-only file, a message "File is read-only"
tells you it is non-writable.
SearchingYou can search for a string in ASCII or in hexadecimal. You can
switch between the two with Tab. If the string is found, the cursor
is moved to the beginning of the matching location. If the search failed, a
message "not found" tells you so. You can cancel the search by
pressing a key.
For more sophisticated search, see Volker Schatz's patch at <http://www.volkerschatz.com/unix/homebrew.html#hexedit>. Selecting, copying, pasting, fillingFirst, select the part of the buffer you want to copy: start setting the mark where you want. Then go to the end of the area you want to copy (you can use the go to function and the search functions). Then copy it. You can then paste the copied area in the current file or in another file. You can also fill the selected area with a string or a character:
start choosing the block you want to fill in (set mark then move to the end
of the block), and call the fill function (F12). hexedit ask
you the string you want to fill the block with.
When the mark is set, the selection is shown in reverse mode.
ScrollingThe scrolling is different whether you are in --sector mode or not. In normal mode, the scrolling is line by line. In sector mode, the scrolling is sector by sector. In both modes, you can force the display to start at a given position using Esc+L. SEE ALSOod(1), hdump(1), hexdump(1), bpe(1), hexed(1), beav(1). AUTHORPixel (Pascal Rigaux) <pixel@rigaux.org>,
UNRESTRICTIONShexedit is Open Source; anyone may redistribute copies of hexedit to anyone under the terms stated in the GNU General Public License. You can find hexedit at
TODOAnything you think could be nice... LIMITATIONSThere are problems with the curses library given with Redhat 5.0 that make hexedit think the terminal is huge. The result is that hexedit is not usable. The shortcuts work on some machines, and not on others. That's why there are many shortcuts for each function. The Ctrl+Arrows and the Alt+. do not work work as they should most of the time. On SUNs, you must do Ctrl+V-Ctrl+V instead of Ctrl+V (!); and the Alt key is the diamond one. While searching, it could be interesting to know which position the search has reached. It's always nice to see something moving to help waiting. The hexadecimal search could be able to search modulo 4 bits instead of 8 bits. Another feature could be to complete padd odd length hexadecimal searches with zeros. BUGSI have an example where the display is completely screwed up. It seems to be a bug in ncurses (or maybe in xterm and rxvt)?? Don't know if it's me using ncurses badly or not... It seems to happen when hexedit leaves only one space at the end of the lines... If anyone has a (or the) solution, please tell me! If you have any problem with the program (even a small one), please do report it to me. Remarks of any kind are also welcome.
|