<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>hyotko</author_name>
  <author_url>https://blog.hatena.ne.jp/hyotko/</author_url>
  <blog_title>ひょっとこの赤備えブログ</blog_title>
  <blog_url>https://hyotko.hatenadiary.org/</blog_url>
  <categories>
    <anon>シェル</anon>
  </categories>
  <description>#!/bin/sh hoge='Hello'if [ &quot;$hoge&quot; = hello ] ; then echo '$hogeはhello' else echo '$hogeはhelloじゃない' fi このコードだと 1行目にシェルスクリプトであることを宣言して 2行目でhogeにHelloを代入。 ifは条件分岐で、内の条件がTRUE（OK）ならthen〜elseの間を実行して elseからfiの間を無視。内がfalse（NO）ならthen〜elseを無視してelseからfiの間を実行。 fiでif文を〆る。※echoは出力結果を参照するコマンド 上記のコードで、実行すると $hogeはh…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhyotko.hatenadiary.org%2Fentry%2F20080425%2F1209055809&quot; title=&quot;シェルでif文 - ひょっとこの赤備えブログ&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>2008-04-25 01:50:09</published>
  <title>シェルでif文</title>
  <type>rich</type>
  <url>https://hyotko.hatenadiary.org/entry/20080425/1209055809</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
