<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>the_pleiades</author_name>
  <author_url>https://blog.hatena.ne.jp/the_pleiades/</author_url>
  <blog_title>アウトプットができる技術者に</blog_title>
  <blog_url>https://the-pleiades.hateblo.jp/</blog_url>
  <categories>
    <anon>Bash</anon>
  </categories>
  <description>代入 arr=(1 2 3)単体出力 echo ${arr[0]} # =&gt; 1 echo ${arr[1]} # =&gt; 2全て出力 echo ${arr[@]} # =&gt; 1 2 3追加 arr+=(5 6) echo ${arr[@]} # =&gt; 1 2 3 5 6要素数 echo ${#arr[@]} # =&gt; 5ループ その１ N=`expr ${#arr[@]} - 1` for i in `seq 0 ${N}` do echo ${arr[$i]} doneループ その２ for var in ${arr[@]} do echo ${var} done 添え字は文字列も可能 ar…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fthe-pleiades.hateblo.jp%2Fentry%2F2014%2F04%2F18%2F020722&quot; title=&quot;Bash 配列 - アウトプットができる技術者に&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>2014-04-18 02:07:22</published>
  <title>Bash 配列</title>
  <type>rich</type>
  <url>https://the-pleiades.hateblo.jp/entry/2014/04/18/020722</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
