Output as null terminated string \0
#3118
-
Is it possible to get output as null terminated string |
Beta Was this translation helpful? Give feedback.
Answered by
wader
May 14, 2024
Replies: 1 comment
-
Yes use $ jq -n --raw-output0 '"abc","def"' | hexdump -C
00000000 61 62 63 00 64 65 66 00 |abc.def.|
00000008 but there is caveat
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
emanuele6
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yes use
--raw-output0
but there is caveat