Last active
August 26, 2022 08:33
-
-
Save brahimmachkouri/7aa5f19298e7b341d461e5f6b2580e20 to your computer and use it in GitHub Desktop.
Hexdump to string (oneliner version)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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