
{"id":18552,"date":"2009-12-16T20:07:59","date_gmt":"2009-12-16T14:37:59","guid":{"rendered":"http:\/\/froisa.com\/?p=132"},"modified":"2009-12-16T20:07:59","modified_gmt":"2009-12-16T14:37:59","slug":"hexdump-2","status":"publish","type":"post","link":"https:\/\/www.trueangle.org\/index.php\/2009\/12\/16\/hexdump-2\/","title":{"rendered":"hexdump, hd \u2014 ASCII, decimal, hexadecimal, octal dump"},"content":{"rendered":"<p>The hexdump utility is a filter which displays the specified files, or standard input if no files are specified, in a user-specified format.<\/p>\n<pre>\n$cat version.c\n#include \n#include \n\nint main(int argc, char **argv)\n{\n  printf(\"MySQL client version: %sn\", mysql_get_client_info());\n}\n\n\nCommandline Session\n\n\n\n$hexdump version.c\n0000000 6923 636e 756c 10064 3c20 796d 675f 6f6c\n0000010 6162 2e6c 3e68 230a 6e69 6c63 6475 20100\n0000020 6d3c 7379 6c71 682e 0a3e 690a 746e 6d20\n0000030 6961 286e 6e69 2074 7261 6367 202c 6863\n0000040 7261 2a20 612a 6772 2976 7b0a 200a 7020\n0000050 6972 746e 2866 4d22 5379 4c51 6320 696c\n0000060 6e100 2074 10076 7372 6f69 3a6e 2520 5c73\n0000070 226e 202c 796d 7173 5f6c 10067 5f74 6c63\n0000080 10069 746e 695f 666e 286f 2929 0a3b 0a7d\n0000090\n$hexdump -C version.c\n00000000  23 69 6e 63 6c 75 64 100  20 3c 6d 79 5f 67 6c 6f  |#include .#include |\n00000020  3c 6d 79 73 71 6c 2e 68  3e 0a 0a 69 6e 74 20 6d  |..int m|\n00000030  61 69 6e 28 69 6e 74 20  61 72 67 63 2c 20 63 68  |ain(int argc, ch|\n00000040  61 72 20 2a 2a 61 72 67  76 29 0a 7b 0a 20 20 70  |ar **argv).{.  p|\n00000050  72 69 6e 74 66 28 22 4d  79 53 51 4c 20 63 6c 69  |rintf(\"MySQL cli|\n00000060  100 6e 74 20 76 100 72 73  69 6f 6e 3a 20 25 73 5c  |ent version: %s|\n00000070  6e 22 2c 20 6d 79 73 71  6c 5f 67 100 74 5f 63 6c  |n\", mysql_get_cl|\n00000080  69 100 6e 74 5f 69 6e 66  6f 28 29 29 3b 0a 7d 0a  |ient_info());.}.|\n00000090\n$\n\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>The hexdump utility is a filter which displays the specified files, or standard input if no files are specified, in a user-specified format. $cat version.c #include #include int main(int argc, char **argv) { printf(&#8220;MySQL client version: %sn&#8221;, mysql_get_client_info()); } Commandline Session $hexdump version.c 0000000 6923 636e 756c 10064 3c20 796d 675f 6f6c 0000010 6162 2e6c &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.trueangle.org\/index.php\/2009\/12\/16\/hexdump-2\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;hexdump, hd \u2014 ASCII, decimal, hexadecimal, octal dump&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[83],"tags":[899],"_links":{"self":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts\/18552"}],"collection":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/comments?post=18552"}],"version-history":[{"count":0,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts\/18552\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/media?parent=18552"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/categories?post=18552"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/tags?post=18552"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}