Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Hexdump to string (oneliner version)
#!/bin/bash
xxd -ps -c 1 $1 | awk '{ print "0x" $0 }' ORS=',' | sed s/.$// && echo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment