<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>papamitra</author_name>
  <author_url>https://blog.hatena.ne.jp/papamitra/</author_url>
  <blog_title>papamitra</blog_title>
  <blog_url>https://papamitra.hatenadiary.org/</blog_url>
  <categories>
    <anon>UNIX</anon>
  </categories>
  <description>http://d.hatena.ne.jp/sshi/20061129/p1 &quot;a&quot;だけを2048行並べた4096バイトのファイルfooにgrep a foo &gt;&gt; fooを実行すると処理は無事に止まって、fooは二倍のサイズ(4096行8192バイト)になる。じゃ1バイトだけ増やそう、と思って最終行だけ&quot;aa&quot;にした2048行4097バイトのfooに同じことをすると、、 $ wc foo 2048 2048 4097 foo $ grep a foo &gt;&gt; foo $ wc foo 6144 6144 12291 foo処理は止まるが何故かサイズが三倍に…。なんで三倍？ 元ネタよりもid:s…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fpapamitra.hatenadiary.org%2Fentry%2F20061130%2Funix&quot; title=&quot; grep - papamitra&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>2006-11-30 00:00:01</published>
  <title> grep</title>
  <type>rich</type>
  <url>https://papamitra.hatenadiary.org/entry/20061130/unix</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
