vim binary(vi)

how to edit a file in binary

$ cat test.dat
ABCD0123
$ vim test.dat













Type :%!xxd to toggle in binary mode


Change "41"(A) to "39"(9)












Type :%!xxd -r   to toggle in text mode























$ cat test.dat
9BCD0123

コメント

人気の投稿