2009年3月10日星期二

Convert Text to Hex on Linux

xxd creates a hex dump of a given file or standard input.


echo "something" | xxd -c 256 -ps


-c 256: 256 octets per line
-ps: plain style

0 意見: