(Video materials in preparation)
bedit : Binary Editor
Usage : bedit [-vlcn] [n] <file>
Version : Thu Oct 21 17:36:23 JST 2021
Edition : 1
bedit dumps the specified file in hexadecimal code, then after
you have edited it in vi, it converts it back to text.
$ cat data
12345
$ bedit data
31 32 33 34 35 0A <-- Hex data. This is edited in vi.
30 32 33 34 35 36 0A <-- If you edit and then ":wq!"
$ cat data
023456
bedit is a shell script.
It dumps the specified file to hexadecimal using the xdump command,
then after you've edited it in vi, it uses the bconv command to
revert it to text.
Options [-vlcn] [n] to the bedit command are passed as-is to the
xdump command.