<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>hat-tun</author_name>
  <author_url>https://blog.hatena.ne.jp/hat-tun/</author_url>
  <blog_title>hat-tunの日記</blog_title>
  <blog_url>https://hat-tun.hatenadiary.org/</blog_url>
  <categories>
    <anon>shell</anon>
  </categories>
  <description>バイトでちょっと使いたかったので、 書いてみた。 ログファイルなどの、データをリアルタイムで監視したい場合、 普通は、 $ tail -f hogehoge.log などとして、ファイルの末尾を監視します。 これは、ファイルが加算的に伸びる場合、有効なんですが、 いかんせん、topコマンドのように、定期的に内容の全更新が行われる ファイルを監視するには、使えません。 そこで、うまく監視する簡単なシェルスクリプトを書いた。 #!/usr/bin/sh file=&quot;hogehoge.log&quot; while [ true ] do cat $file sleep(5) clear done sleep…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhat-tun.hatenadiary.org%2Fentry%2F20100115%2F1263572596&quot; title=&quot;更新されるファイルの内容を、秒間隔で表示するスクリプト - hat-tunの日記&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>2010-01-15 01:23:16</published>
  <title>更新されるファイルの内容を、秒間隔で表示するスクリプト</title>
  <type>rich</type>
  <url>https://hat-tun.hatenadiary.org/entry/20100115/1263572596</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
