<h1 id="gnu-awk---part-12">Gnu Awk - Part 12</h1>
<h2 id="introduction">Introduction</h2>
<p>This is the twelfth episode of the “<a href="https://hackerpublicradio.org/series/0094.html" title="Learning Awk">Learning Awk</a>” series which is being produced by <a href="https://hackerpublicradio.org/correspondents/0300.html" title="b-yeezi">b-yeezi</a> and myself.</p>
<p>In this episode I want to continue with the subject I started in episode 10, an advanced-level look at arrays in Awk. This episode covers <code>patsplit</code> which can split a string into an array, the built-in array <code>PROCINFO</code> which can be used to control how <code>awk</code> sorts arrays, as well as <code>asort</code> and <code>asorti</code>, built-in functions for sorting arrays.</p>
<p>In case it might be of interest I have also included a section describing a recent use I made of <code>awk</code> to solve a problem.</p>
<h2 id="long-notes">Long notes</h2>
<p>I have provided detailed notes as usual for this episode, and these can be <a href="https://hackerpublicradio.org/eps/hpr2610/full_shownotes.html">viewed here</a>.</p>
<h2 id="links">Links</h2>
<ul>
<li><a href="https://www.gnu.org/software/gawk/manual/html_node/index.html"><em>GNU Awk User’s Guide</em></a></li>
<li>Previous shows in this series on HPR:
<ul>
<li><a href="https://hackerpublicradio.org/eps.php?id=2114">“<em>Gnu Awk - Part 1</em>”</a> - episode 2114</li>
<li><a href="https://hackerpublicradio.org/eps.php?id=2129">“<em>Gnu Awk - Part 2</em>”</a> - episode 2129</li>
<li><a href="https://hackerpublicradio.org/eps.php?id=2143">“<em>Gnu Awk - Part 3</em>”</a> - episode 2143</li>
<li><a href="https://hackerpublicradio.org/eps.php?id=2163">“<em>Gnu Awk - Part 4</em>”</a> - episode 2163</li>
<li><a href="https://hackerpublicradio.org/eps.php?id=2184">“<em>Gnu Awk - Part 5</em>”</a> - episode 2184</li>
<li><a href="https://hackerpublicradio.org/eps.php?id=2238">“<em>Gnu Awk - Part 6</em>”</a> - episode 2238</li>
<li><a href="https://hackerpublicradio.org/eps.php?id=2330">“<em>Gnu Awk - Part 7</em>”</a> - episode 2330</li>
<li><a href="https://hackerpublicradio.org/eps.php?id=2438">“<em>Gnu Awk - Part 8</em>”</a> - episode 2438</li>
<li><a href="https://hackerpublicradio.org/eps.php?id=2476">“<em>Gnu Awk - Part 9</em>”</a> - episode 2476</li>
<li><a href="https://hackerpublicradio.org/eps.php?id=2526">“<em>Gnu Awk - Part 10</em>”</a> - episode 2526</li>
<li><a href="https://hackerpublicradio.org/eps.php?id=2554">“<em>Gnu Awk - Part 11</em>”</a> - episode 2554</li>
</ul></li>
<li>Resources:
<ul>
<li><a href="https://hackerpublicradio.org/eps/hpr2610/full_shownotes.epub">ePub version of these notes</a></li>
<li>Examples: <a href="https://hackerpublicradio.org/eps/hpr2610/awk12_ex1.awk">awk12_ex1.awk</a>, <a href="https://hackerpublicradio.org/eps/hpr2610/awk12_ex2.awk">awk12_ex2.awk</a>, <a href="https://hackerpublicradio.org/eps/hpr2610/awk12_ex3.awk">awk12_ex3.awk</a>, <a href="https://hackerpublicradio.org/eps/hpr2610/awk12_ex4.awk">awk12_ex4.awk</a>, <a href="https://hackerpublicradio.org/eps/hpr2610/awk12_ex5.awk">awk12_ex5.awk</a>, <a href="https://hackerpublicradio.org/eps/hpr2610/awk12_ex6.awk">awk12_ex6.awk</a>, <a href="https://hackerpublicradio.org/eps/hpr2610/awk12_ex7.awk">awk12_ex7.awk</a>, <a href="https://hackerpublicradio.org/eps/hpr2610/awk12_ex8.awk">awk12_ex8.awk</a>, <a href="https://hackerpublicradio.org/eps/hpr2610/awk12_ex9.awk">awk12_ex9.awk</a>, <a href="https://hackerpublicradio.org/eps/hpr2610/awk12_ex10.awk">awk12_ex10.awk</a>, <a href="https://hackerpublicradio.org/eps/hpr2610/awk12_extra.awk">awk12_extra.awk</a></li>
</ul></li>
</ul>