xxd: incompatible -p option
Rafał Miłecki
zajec5 at gmail.com
Mon Dec 6 11:56:27 UTC 2021
Hi,
I deal with ~4 MiB of binary data stored as hex numbers in 1-line text
file. I need to convert numbers to raw binary data. That can be done
with -r -p options.
With standalone xxd it works perfectly fine:
$ cat data.bin | xxd -r -p | wc -c
3518210
With busybox not so much:
$ cat data.bin | busybox xxd -r -p | wc -c
30
It seems that -p option implies -c 20 while it should be -c ∞:
$ cat data.bin | busybox xxd -r -p -c 999999999 | wc -c
3518210
Is that someting that could be fixed?
--
Rafał
More information about the busybox
mailing list