<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>coffee_kabu</author_name>
  <author_url>https://blog.hatena.ne.jp/coffee_kabu/</author_url>
  <blog_title>Bus errorとSegmentation faultに困ったら見るブログ</blog_title>
  <blog_url>https://coffee-guhaw.hateblo.jp/</blog_url>
  <categories>
    <anon>シェルコマンド/シェルスクリプト</anon>
    <anon>debian</anon>
  </categories>
  <description>シェルスクリプトでも意外と配列が役に立つことがある 書き方がちょっと特殊なのでメモしておくlabellist=(&quot;A&quot; &quot;B&quot; &quot;C&quot; &quot;D&quot;)のような感じで宣言するこの配列の中身を全部書きたいときはecho ${labellist[@]}ある要素だけを書きたいときはecho ${labellist[$index]}ちなみにこのindexは0, 1, 2, 3..と増えて行く(1始まりではない) ■ 参考 : UNIX &amp; Linux コマンド・シェルスクリプト リファレンス &gt; 配列を使用する(追記)ちなみに空のリストを作るときはhoge=()hoge=(&quot;&quot;)として、空の文字列の要素を作っ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fcoffee-guhaw.hateblo.jp%2Fentry%2F2025%2F04%2F12%2F120000&quot; title=&quot;【シェルスクリプト】配列(リスト)の使い方メモ - Bus errorとSegmentation faultに困ったら見るブログ&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-04-12 12:00:00</published>
  <title>【シェルスクリプト】配列(リスト)の使い方メモ</title>
  <type>rich</type>
  <url>https://coffee-guhaw.hateblo.jp/entry/2025/04/12/120000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
