Sometimes one needs to edit a binary file. The easiest way to do this is using a hex editor which displays all bytes in a file as hex. |
The vi
editor has a handy feature that does just this:
-b
option. This turns off any automatic formatting. For example: vi -b data
:%!xxd
i
key, leave inserting with the ESC
key, delete characters with the x
key):%!xxd -r
:w
followed by :q
or leave without writing the data by entering :q!
Unbedingt das Label kb-how-to-article aus dem nachfolgenden Macro löschen.
|