About this deal
The first two commands in the pipeline are well explained by @TMS in his answer, as edited by @James. The last command differs from @TMS comment in that it is both correct and has been tested. The explanation is: I'm trying to convert "Hello" to 48 65 6c 6c 6f in hexadecimal as efficiently as possible using the command line. The od program is the "octal dump" program. (We will be providing a flag to tell it to dump it in hexadecimal instead of octal.) If you want to do this and remove the spaces you need: echo -n "Hello" | od -A n -t x1 | sed 's/ *//g'
The -t x1 flag is short for --format=x1, with the x being short for "hexadecimal" and the 1 meaning 1 byte.TMS brain child ( sed 's/
Great Deal
Free UK shipping. 15 day free returns.
Community Updates