Skip to content

Instantly share code, notes, and snippets.

@brahimmachkouri
Last active August 26, 2022 08:33
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save brahimmachkouri/7aa5f19298e7b341d461e5f6b2580e20 to your computer and use it in GitHub Desktop.
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