mirror of
https://github.com/wader/fq.git
synced 2024-12-26 15:02:28 +03:00
d376520f11
Padding could end up double. Remove to*range($pad) as it probably just confusing to be able to pad an existing range, what to show in hexdump etc? zero bits that do not actuall exist at that range? Add tests and binary stdout support to tests
9 lines
385 B
Plaintext
9 lines
385 B
Plaintext
$ _STDOUT_ISTERMINAL=0 _STDOUT_HEX=1 NO_COLOR=1 fq -n '[1,1,1 | tobits] | tobytes'
|
|
07\
|
|
$ _STDOUT_ISTERMINAL=0 _STDOUT_HEX=1 NO_COLOR=1 fq -n '[1,1,1 | tobits] | tobytes(3)'
|
|
000007\
|
|
$ _STDOUT_ISTERMINAL=0 _STDOUT_HEX=1 NO_COLOR=1 fq -n '[1,1,1 | tobits] | tobits(9)'
|
|
0380\
|
|
$ _STDOUT_ISTERMINAL=0 _STDOUT_HEX=1 NO_COLOR=1 fq -n '[5 | tobits(12)], [3 | tobytes(3)] | tobytes'
|
|
0005000003\
|