[vim/vim] Print hexdump in decimal numbers. (#773)

57 views
Skip to first unread message

Rafal

unread,
Apr 22, 2016, 6:20:57 AM4/22/16
to vim/vim

This is a feature request of adding -d for xxd which will print binary digits in decimal numeric system, similarly to -b which prints dump in bits rather than hexdump.

Sample usage for hexdump and bit format:

kenorb@MBP$ python -c $'from struct import pack\nwith open("foo.bin", "wb") as file: file.write(pack("<IIIII", *bytearray([10, 20, 30, 40, 50])))'
kenorb@MBP$ xxd foo.bin
00000000: 0a00 0000 1400 0000 1e00 0000 2800 0000  ............(...
00000010: 3200 0000                                2...
kenorb@MBP$ xxd -b foo.bin
00000000: 00001010 00000000 00000000 00000000 00010100 00000000  ......
00000006: 00000000 00000000 00011110 00000000 00000000 00000000  ......
0000000c: 00101000 00000000 00000000 00000000 00110010 00000000  (...2.
00000012: 00000000 00000000

Alternatively we could have universal parameter where you can specify any base system.


You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub

Aapo Rantalainen

unread,
Sep 30, 2022, 2:30:19 PM9/30/22
to vim/vim, Subscribed

This is implemented and merged: #5616


Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/773/1263889592@github.com>

Bram Moolenaar

unread,
Sep 30, 2022, 4:06:55 PM9/30/22
to vim/vim, Subscribed

Closed #773 as completed.


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issue/773/issue_event/7498328564@github.com>

Evan Widloski

unread,
Jan 15, 2025, 11:02:07 PMJan 15
to vim/vim, Subscribed

The linked PR is about the offset column format, but the original question is about the output format of the data itself.

This is something I am also interested in.


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/773/2594429646@github.com>

Reply all
Reply to author
Forward
0 new messages