<h1 id="introduction-to-sed---part-5">Introduction to sed - part 5</h1>
<p>This episode is the last one in the "<em>Introduction to sed</em>" series.</p>
<p>In the <a href="https://hackerpublicradio.org/eps/hpr2011/index.html" title="Introduction to sed - part 4">last episode</a> we looked at the full story of how <code>sed</code> works with the <em>hold</em> and <em>pattern</em> buffers. We looked at some of the commands that we had not yet seen and how they can be used to do more advanced processing using <code>sed</code>'s buffers.</p>
<p>In this episode we will look at a selection of the remaining commands, which might be described as quite obscure (even <em>very obscure</em>). We will also look at some of the example <code>sed</code> scripts found in the <a href="https://www.gnu.org/software/sed/manual/sed.html#Examples" title="GNU sed manual - examples">GNU sed manual</a>.</p>
<p><a href="hpr2060_full_shownotes.html" class="uri">To read the rest of the notes for this episode follow this link.</a></p>
<h2 id="links">Links</h2>
<ul>
<li><a href="https://hackerpublicradio.org/eps/hpr1976/index.html" class="uri"><em>Introduction to sed - part 1</em>: hpr1976</a></li>
<li><a href="https://hackerpublicradio.org/eps/hpr1986/index.html" class="uri"><em>Introduction to sed - part 2</em>: hpr1986</a></li>
<li><a href="https://hackerpublicradio.org/eps/hpr1997/index.html" class="uri"><em>Introduction to sed - part 3</em>: hpr1997</a></li>
<li><a href="https://hackerpublicradio.org/eps/hpr2011/index.html" class="uri"><em>Introduction to sed - part 4</em>: hpr2011</a></li>
<li>GNU <code>sed</code> manual:
<ul>
<li>Index: <a href="https://www.gnu.org/software/sed/manual/sed.html" class="uri">https://www.gnu.org/software/sed/manual/sed.html</a></li>
<li>Commands for <code>sed</code> gurus: <a href="https://www.gnu.org/software/sed/manual/sed.html#Programming-Commands" class="uri">https://www.gnu.org/software/sed/manual/sed.html#Programming-Commands</a></li>
<li>Commands Specific to GNU <code>sed</code>: <a href="https://www.gnu.org/software/sed/manual/sed.html#Extended-Commands" class="uri">https://www.gnu.org/software/sed/manual/sed.html#Extended-Commands</a></li>
</ul></li>
<li>Wikipedia entry for <code>sed</code>: <a href="https://en.wikipedia.org/wiki/Sed" class="uri">https://en.wikipedia.org/wiki/Sed</a></li>
<li>"<em>Sed - An Introduction and Tutorial</em>" by Bruce Barnett: <a href="https://www.grymoire.com/Unix/Sed.html" class="uri">https://www.grymoire.com/Unix/Sed.html</a></li>
<li>Wikibooks sed wiki: <a href="https://en.wikibooks.org/wiki/Sed" class="uri">https://en.wikibooks.org/wiki/Sed</a></li>
<li>Example files:
<ul>
<li>Using the <strong>c</strong> command: <a href="hpr2060_demo5.sed" class="uri">demo5.sed</a></li>
<li>Centring lines: <a href="hpr2060_centre.sed" class="uri">centre.sed</a></li>
<li>Reverse lines of files: <a href="hpr2060_tac.sed" class="uri">tac.sed</a></li>
<li>Reverse characters of lines (original and debug): <a href="hpr2060_reverse_characters.sed" class="uri">reverse_characters.sed</a><br/><a href="hpr2060_reverse_characters_debug.sed" class="uri">reverse_characters_debug.sed</a></li>
</ul></li>
</ul>
