Mercurial > vim
comparison runtime/doc/xxd.man @ 33496:33cbd544dc46 v9.0.1998
patch 9.0.1998: xxd: cannot reverse a bit dump
Commit: https://github.com/vim/vim/commit/85f4521808dd9a587c00f9a2927e84217721cfca
Author: tristhaus <tristhaus@yahoo.de>
Date: Fri Oct 6 19:51:13 2023 +0200
patch 9.0.1998: xxd: cannot reverse a bit dump
Problem: xxd: cannot reverse a bit dump
Solution: implement reversing the bit dump using -b -r
closes: #13286
Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: tristhaus <tristhaus@yahoo.de>
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Fri, 06 Oct 2023 20:00:05 +0200 |
parents | 0a2c50b59f30 |
children | 42f061099b39 |
comparison
equal
deleted
inserted
replaced
33495:6bf3d26b7ddc | 33496:33cbd544dc46 |
---|---|
35 -b | -bits | 35 -b | -bits |
36 Switch to bits (binary digits) dump, rather than hex dump. This | 36 Switch to bits (binary digits) dump, rather than hex dump. This |
37 option writes octets as eight digits "1"s and "0"s instead of a | 37 option writes octets as eight digits "1"s and "0"s instead of a |
38 normal hexadecimal dump. Each line is preceded by a line number | 38 normal hexadecimal dump. Each line is preceded by a line number |
39 in hexadecimal and followed by an ASCII (or EBCDIC) representa‐ | 39 in hexadecimal and followed by an ASCII (or EBCDIC) representa‐ |
40 tion. The command line switches -r, -p, -i do not work with this | 40 tion. The command line switches -p, -i do not work with this |
41 mode. | 41 mode. |
42 | 42 |
43 -c cols | -cols cols | 43 -c cols | -cols cols |
44 Format <cols> octets per line. Default 16 (-i: 12, -ps: 30, -b: | 44 Format <cols> octets per line. Default 16 (-i: 12, -ps: 30, -b: |
45 6). Max 256. No maximum for -ps. With -ps, 0 results in one | 45 6). Max 256. No maximum for -ps. With -ps, 0 results in one |
95 Reverse operation: convert (or patch) hex dump into binary. If | 95 Reverse operation: convert (or patch) hex dump into binary. If |
96 not writing to stdout, xxd writes into its output file without | 96 not writing to stdout, xxd writes into its output file without |
97 truncating it. Use the combination -r -p to read plain hexadeci‐ | 97 truncating it. Use the combination -r -p to read plain hexadeci‐ |
98 mal dumps without line number information and without a particu‐ | 98 mal dumps without line number information and without a particu‐ |
99 lar column layout. Additional whitespace and line breaks are al‐ | 99 lar column layout. Additional whitespace and line breaks are al‐ |
100 lowed anywhere. | 100 lowed anywhere. Use the combination -r -b to read a bits dump |
101 instead of a hex dump. | |
101 | 102 |
102 -R when | 103 -R when |
103 In output the hex-value and the value are both colored with the | 104 In output the hex-value and the value are both colored with the |
104 same color depending on the hex-value. Mostly helping to differ‐ | 105 same color depending on the hex-value. Mostly helping to differ‐ |
105 entiate printable and non-printable characters. when is never, | 106 entiate printable and non-printable characters. when is never, |