<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>dk521123</author_name>
  <author_url>https://blog.hatena.ne.jp/dk521123/</author_url>
  <blog_title>プログラム の超個人的なメモ</blog_title>
  <blog_url>https://dk521123.hatenablog.com/</blog_url>
  <categories>
    <anon>Shell</anon>
  </categories>
  <description>■ はじめに シェルで、split する必要がでてきたので、メモしておく。 目次 【１】シェルで split するには 【２】サンプル 例１：カンマ区切り 例２：ドット区切り（IPアドレス） 例３：export XXX1=YYY1;export XXX2=YYY2;... 【３】補足：配列の長さを求める 【１】シェルで split するには # ${変数名//置換前文字列/置換後文字列} 【split結果（配列）】=(${【split対象文字列】//【Splitする上でのセパレータ（, とか）】/ }) 例：AWS Endpoint から AWS account ID を取得する # AWS …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fdk521123.hatenablog.com%2Fentry%2F2021%2F09%2F02%2F000000&quot; title=&quot;【Shell】シェルで split するには - プログラム の超個人的なメモ&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>2021-09-02 00:00:00</published>
  <title>【Shell】シェルで split するには</title>
  <type>rich</type>
  <url>https://dk521123.hatenablog.com/entry/2021/09/02/000000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
