<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>mikeda</author_name>
  <author_url>https://blog.hatena.ne.jp/mikeda/</author_url>
  <blog_title>mikedaの日記</blog_title>
  <blog_url>https://mikeda.hatenablog.com/</blog_url>
  <categories>
    <anon>シェルスクリプト</anon>
  </categories>
  <description>シェルスクリプトで乱数を得るにはRANDOM変数を参照しましょう。 $ expr $RANDOM % 6 + 1 3 使用例として毎秒５種類のメッセージのどれかをシスログ出力するスクリプト。 while :;do logger -p local5.debug $( sed -n `expr $RANDOM % 5 + 1`p &lt;&lt;END message1 message2 message3 message4 message5 END ) sleep 1 done 絶対だれも使わないな。</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmikeda.hatenablog.com%2Fentry%2F20090109%2F1231529868&quot; title=&quot;シェルでサイコロをふる - mikedaの日記&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-01-09 04:37:48</published>
  <title>シェルでサイコロをふる</title>
  <type>rich</type>
  <url>https://mikeda.hatenablog.com/entry/20090109/1231529868</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
