in reply to Re: Printing byte as 2 Hex charactersin thread Printing byte as 2 Hex characters
Here is one I didn't see listed that I often use for debugging...
printf "0x%*v2.2X\n", ' ', $payload; [download]
If $payload is several bytes of data, this will print something like:
0x01 02 03 CF [download]