<h2 id="overview">Overview</h2>
<p>I write a moderate number of Bash scripts these days. Bash is not a programming language as such, but it’s quite powerful in what it can do by itself, and with other tools it’s capable of many things.</p>
<p>I have enjoyed writing such scripts for many years on a variety of hardware and operating systems, and Bash is my favourite - partly because Linux itself is so flexible.</p>
<p>This is just a short show describing three things I tend to do in Bash scripts to assist with some tasks I find I need to undertake.</p>
<ol type="1">
<li>Generate Bash variables from a text file - usually output from a program</li>
<li>Fill Bash arrays with data from a file or other source</li>
<li>Use environment variables to control the Bash script’s execution</li>
</ol>
<h2 id="long-notes">Long notes</h2>
<p>Follow this link to <a href="https://hackerpublicradio.org/eps/hpr3551/full_shownotes.html">read the detailed notes</a> associated with this episode.</p>
<h2 id="links">Links</h2>
<ul>
<li>Various links:
<ul>
<li><a href="https://unix.stackexchange.com/questions/23111/what-is-the-eval-command-in-bash">What is the “eval” command in bash?</a></li>
<li><a href="https://www.shell-tips.com/bash/arrays/">A Complete Guide on How To Use Bash Arrays</a></li>
<li><a href="https://www.computerhope.com/unix/bash/mapfile.htm">Bash mapfile builtin command</a></li>
<li><a href="https://www.gnu.org/software/bash/manual/html_node/Simple-Command-Expansion.html">Bash manual 3.7.1 Simple Command Expansion</a></li>
</ul></li>
</ul>
<ul>
<li>Previous episodes in this series about arrays:
<ul>
<li><a href="https://hackerpublicradio.org/eps.php?id=2709">Bash Tips - 16</a></li>
<li><a href="https://hackerpublicradio.org/eps.php?id=2719">Bash Tips - 17</a></li>
<li><a href="https://hackerpublicradio.org/eps.php?id=2729">Bash Tips - 18</a></li>
<li><a href="https://hackerpublicradio.org/eps.php?id=2739">Bash Tips - 19</a></li>
<li><a href="https://hackerpublicradio.org/eps.php?id=2756">Bash Tips - 20</a></li>
</ul></li>
</ul>
