<h2 id="introduction">Introduction</h2>
<p>This is the fourteenth 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 and the next I want to start looking at <em>redirection</em> within Awk programs. I had originally intended to cover the subject in one episode, but there is just too much.</p>
<p>So, in the first episode I will be starting with <a href="https://www.gnu.org/software/gawk/manual/gawk.html#Redirection" title="Redirecting output of `print` and `printf`">output redirection</a> and then in the next episode will spend some time looking at the <code>getline</code> command used for <em>explicit input</em>, often with redirection.</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/hpr2816/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>
<ul>
<li><a href="https://www.gnu.org/software/gawk/manual/gawk.html#Redirection">Redirecting output of <code>print</code> and <code>printf</code></a></li>
<li><a href="https://www.gnu.org/software/gawk/manual/gawk.html#Special-FD">Special Files for Standard Preopened Data Streams</a></li>
<li><a href="https://www.gnu.org/software/gawk/manual/gawk.html#Special-Files">Special File names in gawk</a></li>
</ul></li>
</ul>
<ul>
<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>
<li><a href="https://hackerpublicradio.org/eps.php?id=2610">“<em>Gnu Awk - Part 12</em>”</a> - episode 2610</li>
<li><a href="https://hackerpublicradio.org/eps.php?id=2804">“<em>Gnu Awk - Part 13</em>”</a> - episode 2804</li>
</ul></li>
<li>Resources:
<ul>
<li><a href="https://hackerpublicradio.org/eps/hpr2816/full_shownotes.epub">ePub version of these notes</a></li>
<li>Examples: <a href="https://hackerpublicradio.org/eps/hpr2816/awk14_fruit_data.txt">awk14_fruit_data.txt</a>, <a href="https://hackerpublicradio.org/eps/hpr2816/awk14_ex1.awk">awk14_ex1.awk</a>, <a href="https://hackerpublicradio.org/eps/hpr2816/awk14_ex2.awk">awk14_ex2.awk</a>, <a href="https://hackerpublicradio.org/eps/hpr2816/awk14_ex3.awk">awk14_ex3.awk</a></li>
</ul></li>
</ul>
