How to create a hex dump of file containing only the hex characters without spaces in bash? October 11, 2022 by Tarik xxd -p file Or if you want it all on a single line: xxd -p file | tr -d '\n'