Skip to main content

Timeline for xxd output without line breaks

Current License: CC BY-SA 4.0

11 events
when toggle format what by license comment
Sep 16, 2024 at 15:53 comment added Louis CAD Short answer: Turn xxd -p into xxd -p -c 0 to make it single-line. (I posted it as an answer, but got removed because included in more complex answers…)
Nov 17, 2022 at 12:20 comment added Yan Foto I'd stick with piping to tr -d '[[:blank:][:space:]]'.
Jun 16, 2022 at 9:02 history edited dr_ CC BY-SA 4.0
edited title
Jun 16, 2022 at 8:58 answer added Juan Jesus Prieto timeline score: 10
Nov 11, 2016 at 12:48 history bumped CommunityBot This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
Oct 10, 2016 at 16:29 comment added dirkt You can also use hexdump -v -e '/1 "%02X"' instead of xxd.
Oct 10, 2016 at 16:04 answer added Graf timeline score: 32
Jul 27, 2015 at 0:20 comment added Peter.O It depends on what you need it for, but one handy option of xxd is that it ignores whitespace for the reverse -r of its postcript/plain -p dump (or any plain hexdump for that matter). eg. The following line wraps with \n, but the reversed output is exactly what was input: echo {1..14} | xxd -p | xxd -p -r produces output: 1 2 3 4 5 6 7 8 9 10 11 12 13 14\n – the \n is from the echo
Jul 26, 2015 at 23:12 comment added don_crissti You could simply use tr to delete the newlines, e.g. ... | xxd -p | tr -d \\n
Jul 26, 2015 at 23:00 history edited Gilles 'SO- stop being evil' CC BY-SA 3.0
deleted 1 character in body; edited tags
Jul 26, 2015 at 22:58 history asked Juicy CC BY-SA 3.0