<?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>シェルスクリプト</anon>
  </categories>
  <description>id:eel3:20151102:1446476928 のhcaslのsh版にて、AWKで標準入力／ファイルを1byteずつ読むために試行錯誤したので、独立した記事として書いておく。現時点での結論としては、POSIXの範囲内では、awk(1)単体で標準入力やファイルから1byteずつ中身を読む方法はなさそうだ。FSやRSを変更すればなんとかなりそう――と思いきや、実はそうでもなかったという。そもそもFSやRSが存在する時点で、「特定の文字を特別扱いする」と宣言しているようなものだ。確実に1byteずつ読みこむ、という動作自体と相性が悪い。そこで考えた方法が、他のツールを使って文字から別の表現―…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Feel3.hatenablog.com%2Fentry%2F20151212%2F1449931944&quot; title=&quot;AWKで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-12 23:52:24</published>
  <title>AWKで1byteずつファイルを読む方法 ＋ 1文字ずつ読む方法の構想</title>
  <type>rich</type>
  <url>https://eel3.hatenablog.com/entry/20151212/1449931944</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
