# To convert bin/string to hex:
echo '42 is the solution' | xxd -p
# output: 34322069732074686520736f6c7574696f6e0a

# To convert hex to bin/string:
echo '34322069732074686520736f6c7574696f6e0a' | xxd -r -p
# output: 42 is the solution
