<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>eel3</author_name>
  <author_url>https://blog.hatena.ne.jp/eel3/</author_url>
  <blog_title>新・日々録 by TRASH BOX@Eel</blog_title>
  <blog_url>https://eel3.hatenablog.com/</blog_url>
  <categories>
    <anon>小ネタプログラミング</anon>
    <anon>gawk</anon>
  </categories>
  <description>id:eel3:20151212:1449931944 へのはてブのコメントより。 gawk なら簡単にできるけど、これも意外と知られてないかな。 http://b.hatena.ne.jp/entry/273514414/comment/Rocco コメントのように、拡張アリアリなら、gawkで1文字/1byteずつ読むことや、mawkで1byteずつ読むことは可能である。例えば次のコードはgawkとmawk双方で有効だ。 $ echo $LANG ja_JP.UTF-8 $ echo -n aあbc | gawk ' &gt; BEGIN { &gt; FS = &quot;&quot; &gt; RS = &quot;^$&quot; &gt; } …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Feel3.hatenablog.com%2Fentry%2F20151213%2F1449998113&quot; title=&quot;gawkやmawkで1byte/1文字ずつファイルを読む方法 - 新・日々録 by TRASH BOX@Eel&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>2015-12-13 18:15:13</published>
  <title>gawkやmawkで1byte/1文字ずつファイルを読む方法</title>
  <type>rich</type>
  <url>https://eel3.hatenablog.com/entry/20151213/1449998113</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
