Skip to content

Instantly share code, notes, and snippets.

@brahimmachkouri
Last active August 26, 2022 08:33
Show Gist options
  • Save brahimmachkouri/7aa5f19298e7b341d461e5f6b2580e20 to your computer and use it in GitHub Desktop.
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