<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>kiririmode</author_name>
  <author_url>https://blog.hatena.ne.jp/kiririmode/</author_url>
  <blog_title>理系学生日記</blog_title>
  <blog_url>https://kiririmode.hatenablog.jp/</blog_url>
  <categories>
    <anon>shellscript</anon>
    <anon>bash</anon>
  </categories>
  <description>Bash において、変数が特定の文字列で終わるかを確認したいケースがあります。 これ Bash のみで実現が可能です。 [[ ${user_arn} == *Terraformer ]] Bash における [ と [[ シェルスクリプトで使用される [ がコマンドである事実はよく知られていますが、[[ は bash 等のシェルで独自に実装されています。 $ type '[' [ is a shell builtin $ type '[[' [[ is a reserved word Bash では [[ と ]] に対してかなり拡張した実装をしています。これを条件分岐時に使用すると、正規表現…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkiririmode.hatenablog.jp%2Fentry%2F20200920%2F1600562341&quot; title=&quot;Bash で endsWith (文字列が特定の文字列が終わるかを確認する) - 理系学生日記&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>2020-09-20 09:39:01</published>
  <title>Bash で endsWith (文字列が特定の文字列が終わるかを確認する)</title>
  <type>rich</type>
  <url>https://kiririmode.hatenablog.jp/entry/20200920/1600562341</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
