<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>hymd3a</author_name>
  <author_url>https://blog.hatena.ne.jp/hymd3a/</author_url>
  <blog_title>ひゃまだのblog</blog_title>
  <blog_url>https://hymd3a.hatenablog.com/</blog_url>
  <categories>
    <anon>Bash</anon>
    <anon>Linux</anon>
  </categories>
  <description>(2022-01-24 初稿 - ) Bashのスクリプトを作っていると、Webでいろいろ調べてとても勉強になる。 今回は、終了ステータスを利用した小技を紹介。 今回は、以下のサイトを参考にさせていただいた。多謝。m(__)m 終了ステータス | UNIX &amp; Linux コマンド・シェルスクリプト リファレンス コマンドを実行後、その成否が終了ステータスに保存される。 例えば、Terminal上で、以下のコマンドを実行した場合、成功した場合としない場合で終了ステータスは以下のとおり。 $ ls dir $ echo $? dir ディレクトリがあれば 0 dir ディレクトリがない 2 直前…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhymd3a.hatenablog.com%2Fentry%2F2022%2F01%2F24%2F203623&quot; title=&quot;Bashの終了ステータスを利用した小技 - ひゃまだのblog&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>2022-01-24 20:36:23</published>
  <title>Bashの終了ステータスを利用した小技</title>
  <type>rich</type>
  <url>https://hymd3a.hatenablog.com/entry/2022/01/24/203623</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
