<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.php?id=2011" 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>To read the rest of the notes for this episode follow this link: <a href="https://hackerpublicradio.org/eps/hpr2060/full_shownotes.html" class="uri">https://hackerpublicradio.org/eps/hpr2060/full_shownotes.html</a></p>
<h2 id="links">Links</h2>
<ul>
<li><em>Introduction to sed - part 1</em>: <a href="https://hackerpublicradio.org/eps.php?id=1976" class="uri">https://hackerpublicradio.org/eps.php?id=1976</a></li>
<li><em>Introduction to sed - part 2</em>: <a href="https://hackerpublicradio.org/eps.php?id=1986" class="uri">https://hackerpublicradio.org/eps.php?id=1986</a></li>
<li><em>Introduction to sed - part 3</em>: <a href="https://hackerpublicradio.org/eps.php?id=1997" class="uri">https://hackerpublicradio.org/eps.php?id=1997</a></li>
<li><em>Introduction to sed - part 4</em>: <a href="https://hackerpublicradio.org/eps.php?id=2011" class="uri">https://hackerpublicradio.org/eps.php?id=2011</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="https://hackerpublicradio.org/eps/hpr2060/demo5.sed" class="uri">https://hackerpublicradio.org/eps/hpr2060/demo5.sed</a></li>
<li>Centring lines: <a href="https://hackerpublicradio.org/eps/hpr2060/centre.sed" class="uri">https://hackerpublicradio.org/eps/hpr2060/centre.sed</a></li>
<li>Reverse lines of files: <a href="https://hackerpublicradio.org/eps/hpr2060/tac.sed" class="uri">https://hackerpublicradio.org/eps/hpr2060/tac.sed</a></li>
<li>Reverse characters of lines (original and debug): <a href="https://hackerpublicradio.org/eps/hpr2060/reverse_characters.sed" class="uri">https://hackerpublicradio.org/eps/hpr2060/reverse_characters.sed</a> <a href="https://hackerpublicradio.org/eps/hpr2060/reverse_characters_debug.sed" class="uri">https://hackerpublicradio.org/eps/hpr2060/reverse_characters_debug.sed</a></li>
</ul></li>
</ul>
