<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>kabegiwakun</author_name>
  <author_url>https://blog.hatena.ne.jp/kabegiwakun/</author_url>
  <blog_title>かべぎわブログ</blog_title>
  <blog_url>https://www.kabegiwablog.com/</blog_url>
  <categories>
    <anon>シェルスクリプト</anon>
  </categories>
  <description>シェルスクリプトでwhile read -pとcaseで対話式のスクリプトを作っているときにちょっとはまったので備忘録的に残しておく。 やりたいこと スクリプトで以下のように聞かれたときにyでもYESでもYesでもいいよって判定させたい。 ほんとうにいいですか? [y/n] つくってみる while read -p &quot;ほんとうにいいですか? [y/n] &quot; yes_or_no ; do case ${yes_or_no} in [Yy]|[Yy][Ee][Ss] ) echo &quot;やったな&quot; exit ;; [Nn]|[Nn][Oo] ) echo &quot;やらなかったな&quot; exit ;; * ) e…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.kabegiwablog.com%2Fentry%2F2017%2F08%2F08%2F233820&quot; title=&quot;シェルスクリプトのcase文でYESorNOの大文字小文字を区別しない方法 - かべぎわブログ&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>2017-08-08 23:38:20</published>
  <title>シェルスクリプトのcase文でYESorNOの大文字小文字を区別しない方法</title>
  <type>rich</type>
  <url>https://www.kabegiwablog.com/entry/2017/08/08/233820</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
