<h2 id="some-supplementary-bash-tips">Some supplementary Bash tips</h2>
<h3 id="pathname-expansion-part-1-of-2">Pathname expansion; part 1 of 2</h3>
<h2 id="expansion">Expansion</h2>
<p>As we saw in the last episode <a href="https://hackerpublicradio.org/eps.php?id=2045" title="Some other Bash tips">2045</a> (and others in this sub-series) there are eight types of expansion applied to the command line in the following order:</p>
<ul>
<li>Brace expansion (we looked at this subject in episode <a href="https://hackerpublicradio.org/eps.php?id=1884" title="Some more Bash tips">1884</a>)</li>
<li>Tilde expansion (seen in episode <a href="https://hackerpublicradio.org/eps.php?id=1903" title="Some further Bash tips">1903</a>)</li>
<li>Parameter and variable expansion (this was covered in episode <a href="https://hackerpublicradio.org/eps.php?id=1648" title="Bash parameter manipulation">1648</a>)</li>
<li>Command substitution (seen in episode <a href="https://hackerpublicradio.org/eps.php?id=1903" title="Some further Bash tips">1903</a>)</li>
<li>Arithmetic expansion (seen in episode <a href="https://hackerpublicradio.org/eps.php?id=1951" title="Some additional Bash tips">1951</a>)</li>
<li>Process substitution (seen in episode <a href="https://hackerpublicradio.org/eps.php?id=2045" title="Some other Bash tips">2045</a>)</li>
<li>Word splitting (seen in episode <a href="https://hackerpublicradio.org/eps.php?id=2045" title="Some other Bash tips">2045</a>)</li>
<li>Pathname expansion (this episode and the next)</li>
</ul>
<p>This is the last topic in the (sub-) series about expansion in Bash. However, when writing the notes for this episode it became apparent that there was too much to fit into a single HPR episode. Consequently I have made it into two.</p>
<p>In this episode we will look at simple pathname expansion and some of the ways in which its behaviour can be controlled. In the next episode we’ll finish by looking at extended pattern matching. Both are included in the “<a href="https://hackerpublicradio.org/eps/hpr2278/full_shownotes.html#manual-page-extracts">Manual Page Extracts</a>” section at the end of the long notes.</p>
<h2 id="long-show-notes">Long Show Notes</h2>
<p>I have written out a moderately long set of notes about this subject and these are available <a href="https://hackerpublicradio.org/eps/hpr2278/full_shownotes.html">here</a>.</p>
<h2 id="links">Links</h2>
<!-- \_ -->
<ul>
<li>Previous shows in this series
<ol>
<li><a href="https://hackerpublicradio.org/eps.php?id=1648">HPR episode 1648 “<em>Bash parameter manipulation</em>”</a> (2014-11-26)</li>
<li><a href="https://hackerpublicradio.org/eps.php?id=1843">HPR episode 1843 “<em>Some Bash tips</em>”</a> (2015-08-26)</li>
<li><a href="https://hackerpublicradio.org/eps.php?id=1884">HPR episode 1884 “<em>Some more Bash tips</em>”</a> (2015-10-22)</li>
<li><a href="https://hackerpublicradio.org/eps.php?id=1903">HPR episode 1903 “<em>Some further Bash tips</em>”</a> (2015-11-18)</li>
<li><a href="https://hackerpublicradio.org/eps.php?id=1951">HPR episode 1951 “<em>Some additional Bash tips</em>”</a> (2016-01-25)</li>
<li><a href="https://hackerpublicradio.org/eps.php?id=2045">HPR episode 2045 “<em>Some other Bash tips</em>”</a> (2016-06-03)</li>
</ol></li>
</ul>
<!-- - -->
<ul>
<li>Other HPR series referenced:
<ul>
<li><a href="https://hackerpublicradio.org/series/0090.html">“<em>Learning sed</em>”</a> series on HPR</li>
<li><a href="https://hackerpublicradio.org/series/0094.html">“<em>Learning Awk</em>”</a> series on HPR</li>
</ul></li>
</ul>
<!-- - -->
<ul>
<li>Wikipedia article on <a href="https://en.wikipedia.org/wiki/Glob_%28programming%29"><em>glob patterns</em></a></li>
<li>Advanced Bash Scripting Guide: <a href="https://www.tldp.org/LDP/abs/html/globbingref.html">“<em>Globbing</em>”</a></li>
<li>Article on <a href="https://mywiki.wooledge.org/glob"><em>Greg’s Wiki</em></a> entitled “<em>Globs</em>”</li>
</ul>

