<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>bitwaka</author_name>
  <author_url>https://blog.hatena.ne.jp/bitwaka/</author_url>
  <blog_title>とあるネットワーク管理者の苦悩</blog_title>
  <blog_url>https://bitwaka.hatenadiary.org/</blog_url>
  <categories>
    <anon>シェル</anon>
  </categories>
  <description>grepを使って、httpdのerror_logの中から「error」文字列の個数を返す。# vi count.sh - #!/bin/sh var=`grep -ic 'error' /var/log/httpd/error_log` exit `expr $var` - ※chmod 755 で実行権限を付与するのを忘れずに。 ※-i は大文字小文字の区別なし ※-c は数の取得</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fbitwaka.hatenadiary.org%2Fentry%2F20091125%2F1259141120&quot; title=&quot;ある文字列の数を返すシェル - とあるネットワーク管理者の苦悩&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>2009-11-25 18:25:20</published>
  <title>ある文字列の数を返すシェル</title>
  <type>rich</type>
  <url>https://bitwaka.hatenadiary.org/entry/20091125/1259141120</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
