<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>Greenpenguin</author_name>
  <author_url>https://blog.hatena.ne.jp/Greenpenguin/</author_url>
  <blog_title>ぽかぽかコード日和</blog_title>
  <blog_url>https://greenpenguin.hatenablog.jp/</blog_url>
  <categories>
  </categories>
  <description>シェルスクリプトの 条件によって処理を分岐するためのコマンド（if文、case文、testコマンド）についてまとめました。 if文 「if」は、条件に合致した場合(真)に処理を実行する。 if [ 条件式 ] then 条件に合致した場合の処理 fi [ 条件式 ]のように、[]と条件式の間に必ず半角スペースをいれる。 条件式に合致しない(偽)の場合は、処理をスキップする。 条件式にいれる比較演算子や条件 数値の比較 演算子 内容（数値１と数値２が） 数値1 -eq 数値2 等しい(=) 数値1 -ne 数値2 等しくない(!=) 数値1 -gt 数値2 数値2より大きい(&gt;) 数値1 -ge…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fgreenpenguin.hatenablog.jp%2Fentry%2F2025%2F02%2F28%2F162242&quot; title=&quot;【Shell Script】条件分岐 - ぽかぽかコード日和&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>2025-02-28 16:22:42</published>
  <title>【Shell Script】条件分岐</title>
  <type>rich</type>
  <url>https://greenpenguin.hatenablog.jp/entry/2025/02/28/162242</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
