<h1 id="more-supplementary-bash-tips">More supplementary Bash tips</h1>
<h3 id="pathname-expansion-part-2-of-2">Pathname expansion; part 2 of 2</h3>
<h2 id="expansion">Expansion</h2>
<p>As we saw in the last episode <a href="https://hackerpublicradio.org/eps.php?id=2278" title="Some supplementary Bash tips">2278</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 (the previous episode <a href="https://hackerpublicradio.org/eps.php?id=2278" title="Some supplementary Bash tips">2278</a> and this one)</li>
</ul>
<p>This is the last topic in the (sub-) series about expansion in Bash.</p>
<p>In this episode we will look at extended pattern matching as also defined in the “<a href="https://hackerpublicradio.org/eps/hpr2293/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/hpr2293/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></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>
</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>
<li>Questions about <em>Bash extended globbing</em> on Stack Exchange:
<ul>
<li>Question 1: <a href="https://unix.stackexchange.com/questions/168769/bash-extended-globbing">How to list just one file with ‘<code>ls</code>’</a></li>
<li>Question 2: <a href="https://unix.stackexchange.com/questions/203386/extended-glob-what-is-the-difference-in-syntax-between-list-list-list">What is the difference between…</a></li>
<li>Question 3: <a href="https://stackoverflow.com/questions/4554718/patterns-in-case-statement-in-bash-scripting">Patterns in case statements</a></li>
</ul></li>
</ul>