<h2 id="arrays-in-bash">Arrays in Bash <small><small>(Supplemental auxiliary Bash tips)</small></small></h2>
<p>This is the fourth and last of a small group of shows on the subject of arrays in Bash. It is also the nineteenth show in the <em>Bash Tips</em> sub-series.</p>
<p>In the last show we continued with the subject of parameter expansion in the context of arrays. There are other aspects of this that could be looked at, but we’ll leave it for the moment and may revisit it in the future.</p>
<p>In this episode we will look in more depth at the <code>declare</code> (<code>typeset</code>) built in command and at some commands that are related (<code>readonly</code> and <code>local</code>), We will also look at the commands that assist with loading data into arrays: <code>mapfile</code> (<code>readarray</code>) and <code>read</code>.</p>
<h2 id="long-notes">Long notes</h2>
<p>As usual I have provided detailed notes and examples for this episode, and these can be <a href="https://hackerpublicradio.org/eps/hpr2739/full_shownotes.html">viewed here</a>.</p>
<h2 id="links">Links</h2>
<ul>
<li><a href="https://www.gnu.org/software/bash/manual/bash.html">“<em>GNU BASH Reference Manual</em>”</a>
<ul>
<li>Section on <a href="https://www.gnu.org/software/bash/manual/bash.html#Arrays">“Bash Arrays”</a></li>
<li>Section on <a href="https://www.gnu.org/software/bash/manual/bash.html#Shell-Builtin-Commands">“4 Shell Builtin Commands”</a>
<ul>
<li>Section on <a href="https://www.gnu.org/software/bash/manual/bash.html#Bourne-Shell-Builtins">“4.1 Bourne Shell Builtins”</a></li>
<li>Section on <a href="https://www.gnu.org/software/bash/manual/bash.html#Bash-Builtins">“4.2 Bash Builtin Commands”</a></li>
</ul></li>
</ul></li>
</ul>
<ul>
<li>Linux Documentation Project: <a href="https://www.tldp.org/LDP/abs/html/index.html">Advanced Bash-Scripting Guide</a>
<ul>
<li><a href="https://www.tldp.org/LDP/abs/html/arrays.html">Chapter 27: Arrays</a></li>
</ul></li>
<li><p><a href="https://hackerpublicradio.org/series/0042.html">HPR series: <em>Bash Scripting</em></a></p></li>
<li>Previous episodes under the heading <em>Bash Tips</em>:
<ol>
<li><a href="https://hackerpublicradio.org/eps.php?id=1648">HPR episode 1648 “<em>Bash parameter manipulation</em>”</a></li>
<li><a href="https://hackerpublicradio.org/eps.php?id=1843">HPR episode 1843 “<em>Some Bash tips</em>”</a></li>
<li><a href="https://hackerpublicradio.org/eps.php?id=1884">HPR episode 1884 “<em>Some more Bash tips</em>”</a></li>
<li><a href="https://hackerpublicradio.org/eps.php?id=1903">HPR episode 1903 “<em>Some further Bash tips</em>”</a></li>
<li><a href="https://hackerpublicradio.org/eps.php?id=1951">HPR episode 1951 “<em>Some additional Bash tips</em>”</a></li>
<li><a href="https://hackerpublicradio.org/eps.php?id=2045">HPR episode 2045 “<em>Some other Bash tips</em>”</a></li>
<li><a href="https://hackerpublicradio.org/eps.php?id=2278">HPR episode 2278 “<em>Some supplementary Bash tips</em>”</a></li>
<li><a href="https://hackerpublicradio.org/eps.php?id=2293">HPR episode 2293 “<em>More supplementary Bash tips</em>”</a></li>
<li><a href="https://hackerpublicradio.org/eps.php?id=2639">HPR episode 2639 “<em>Some ancillary Bash tips - 9</em>”</a></li>
<li><a href="https://hackerpublicradio.org/eps.php?id=2649">HPR episode 2649 “<em>More ancillary Bash tips - 10</em>”</a></li>
<li><a href="https://hackerpublicradio.org/eps.php?id=2659">HPR episode 2659 “<em>Further ancillary Bash tips - 11</em>”</a></li>
<li><a href="https://hackerpublicradio.org/eps.php?id=2669">HPR episode 2669 “<em>Additional ancillary Bash tips - 12</em>”</a></li>
<li><a href="https://hackerpublicradio.org/eps.php?id=2679">HPR episode 2679 “<em>Extra ancillary Bash tips - 13</em>”</a></li>
<li><a href="https://hackerpublicradio.org/eps.php?id=2689">HPR episode 2689 “<em>Bash Tips - 14 (Some auxiliary Bash tips)</em>”</a></li>
<li><a href="https://hackerpublicradio.org/eps.php?id=2699">HPR episode 2699 “<em>Bash Tips - 15 (More auxiliary Bash tips)</em>”</a></li>
<li><a href="https://hackerpublicradio.org/eps.php?id=2709">HPR episode 2709 “<em>Bash Tips - 16 (Further auxiliary Bash tips)</em>”</a></li>
<li><a href="https://hackerpublicradio.org/eps.php?id=2719">HPR episode 2719 “<em>Bash Tips - 17 (Additional auxiliary Bash tips)</em>”</a></li>
<li><a href="https://hackerpublicradio.org/eps.php?id=2729">HPR episode 2729 “<em>Bash Tips - 18 (Extra auxiliary Bash tips)</em>”</a></li>
</ol></li>
</ul>
<ul>
<li>Resources:
<ul>
<li>Examples: <a href="https://hackerpublicradio.org/eps/hpr2739/bash19_ex1.sh">bash19_ex1.sh</a>, <a href="https://hackerpublicradio.org/eps/hpr2739/bash19_ex2.sh">bash19_ex2.sh</a>, <a href="https://hackerpublicradio.org/eps/hpr2739/bash19_ex3.sh">bash19_ex3.sh</a></li>
</ul></li>
</ul>
