<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>nahate</author_name>
  <author_url>https://blog.hatena.ne.jp/nahate/</author_url>
  <blog_title>,</blog_title>
  <blog_url>https://nahate.hatenadiary.org/</blog_url>
  <categories>
  </categories>
  <description>00 01 02 ff dg みたいな文字列をlinux上でバイナリに戻そうとしてちょっと手間取りました. バイナリエディタでコピペしたらアスキーコードのコピペになって失敗。 emacsのバイナリモードも思った数字になりません. 検索したら２進数にする方法など出てきていまいち、結局昔とった杵柄でperlで変換しました。 #!/bin/perl while(&lt;&gt;){ $char = $_; $char =~ s/([0-9A-Fa-f][0-9A-Fa-f])\s*/pack(&quot;C&quot;, hex($1) )/eg; print $char; }</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fnahate.hatenadiary.org%2Fentry%2F20120606&quot; title=&quot;perlでhex2bin - ,&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2012-06-06 00:00:00</published>
  <title>perlでhex2bin</title>
  <type>rich</type>
  <url>https://nahate.hatenadiary.org/entry/20120606</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
