<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ryousanngata</author_name>
  <author_url>https://blog.hatena.ne.jp/ryousanngata/</author_url>
  <blog_title>日々量産</blog_title>
  <blog_url>https://ryozi.hatenadiary.jp/</blog_url>
  <categories>
    <anon>Linux</anon>
  </categories>
  <description>標準入力から応答していくタイプのプログラムがよくあります。 9/19 追記 改行が出力されなくても上手く読み出せる方法があるっぽいのでそれを追記。 hello.sh #!/bin/sh echo &quot;what's your name?&quot; echo &quot;input your name:&quot; read name echo &quot;age ?:&quot; read age echo &quot;hi, $name($age)! nice to meet you!!&quot; $ sh hello.sh what's your name? input your name: ryozi age ?: 24 hi, ryozi(24)! ni…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fryozi.hatenadiary.jp%2Fentry%2F20120918%2F1347976228&quot; title=&quot;シェルスクリプト(とよくあるコマンド)でexpectのように自動応答させる - 日々量産&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>2012-09-18 22:50:28</published>
  <title>シェルスクリプト(とよくあるコマンド)でexpectのように自動応答させる</title>
  <type>rich</type>
  <url>https://ryozi.hatenadiary.jp/entry/20120918/1347976228</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
