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>
This commit is contained in:
tristhaus
2023-10-06 19:51:13 +02:00
committed by Christian Brabandt
parent 580c1fcb4a
commit 85f4521808
14 changed files with 161 additions and 50 deletions

View File

@ -37,7 +37,7 @@ OPTIONS
option writes octets as eight digits "1"s and "0"s instead of a
normal hexadecimal dump. Each line is preceded by a line number
in hexadecimal and followed by an ASCII (or EBCDIC) representa
tion. The command line switches -r, -p, -i do not work with this
tion. The command line switches -p, -i do not work with this
mode.
-c cols | -cols cols
@ -97,7 +97,8 @@ OPTIONS
truncating it. Use the combination -r -p to read plain hexadeci
mal dumps without line number information and without a particu
lar column layout. Additional whitespace and line breaks are al
lowed anywhere.
lowed anywhere. Use the combination -r -b to read a bits dump
instead of a hex dump.
-R when
In output the hex-value and the value are both colored with the