{"id":11360,"date":"2015-04-14T16:46:00","date_gmt":"2015-04-14T21:46:00","guid":{"rendered":"https:\/\/www.rushworth.us\/lisa\/?p=11360"},"modified":"2025-01-15T16:49:15","modified_gmt":"2025-01-15T21:49:15","slug":"linux-utility-xxd","status":"publish","type":"post","link":"https:\/\/www.rushworth.us\/lisa\/?p=11360","title":{"rendered":"Linux Utility: xxd"},"content":{"rendered":"\n<p>When there&#8217;s something different between two files but you just cannot see it &#8212; xxd is a command line hex dump utility. You can even pair it with diff to see &#8230; oh, one has \\r\\n and the other just has \\n<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n&#x5B;lisa@FVP05 ljr]# diff -u &lt;(xxd unix.txt) &lt;(xxd dos.txt)\n--- \/dev\/fd\/63  2025-01-15 16:39:58.016083028 -0500\n+++ \/dev\/fd\/62  2025-01-15 16:39:58.018083031 -0500\n@@ -1 +1 @@\n-00000000: 4865 6c6c 6f21 0a                        Hello!.\n+00000000: 4865 6c6c 6f21 0d0a                      Hello!..\n\n<\/pre><\/div>","protected":false},"excerpt":{"rendered":"<p>When there&#8217;s something different between two files but you just cannot see it &#8212; xxd is a command line hex dump utility. You can even pair it with diff to see &#8230; oh, one has \\r\\n and the other just has \\n<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[30],"tags":[632,2077,294,2078],"class_list":["post-11360","post","type-post","status-publish","format-standard","hentry","category-system-administration","tag-bash","tag-diff","tag-linux","tag-xxd"],"_links":{"self":[{"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/posts\/11360","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=11360"}],"version-history":[{"count":1,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/posts\/11360\/revisions"}],"predecessor-version":[{"id":11361,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/posts\/11360\/revisions\/11361"}],"wp:attachment":[{"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=11360"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=11360"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=11360"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}