Cat Footwear Men's Hex Base Sneaker
FREE Shipping
Cat Footwear Men's Hex Base Sneaker
- Brand: Unbranded
Description
The -t x1 flag is short for --format=x1, with the x being short for "hexadecimal" and the 1 meaning 1 byte. If you want to do this and remove the spaces you need: echo -n "Hello" | od -A n -t x1 | sed 's/ *//g' I'm trying to convert "Hello" to 48 65 6c 6c 6f in hexadecimal as efficiently as possible using the command line. 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: 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.)
TMS brain child ( sed 's/
- Fruugo ID: 258392218-563234582
- EAN: 764486781913
-
Sold by: Fruugo