<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>takuya_1st</author_name>
  <author_url>https://blog.hatena.ne.jp/takuya_1st/</author_url>
  <blog_title>それマグで！</blog_title>
  <blog_url>https://takuya-1st.hatenablog.jp/</blog_url>
  <categories>
    <anon>bash</anon>
    <anon>IFS</anon>
    <anon>bash</anon>
    <anon>bashの使い方</anon>
  </categories>
  <description>bash も配列を扱える シェルスクリプトで配列を扱えるので 配列を扱ってみる。 今回は、サンプルのために、変数名を大文字にしています。もちろん小文字も使えます。 大文字は、おもに環境変数やスクリプト間やプロセス間で値を渡すときに使うことが多いようです。 配列の定義 配列の定義には基本的に２つあります。 コマンドをの実行結果を配列に入れたい場合は、mapfile や IFS を使うのがいいとおもいます。 bash の配列の定義の例 declare ARR=() declare -a ARR # または arr=() #無精する場合 配列の定義を改行する場合は、文字列でクォートが手っ取り早い。 …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftakuya-1st.hatenablog.jp%2Fentry%2F2016%2F12%2F27%2F053456&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>2016-12-27 05:34:56</published>
  <title>bashの配列のまとめ（定義・代入・参照と取得・ループ）</title>
  <type>rich</type>
  <url>https://takuya-1st.hatenablog.jp/entry/2016/12/27/053456</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
