<h1 id="introduction-to-sed---part-2">Introduction to sed - part 2</h1>
<p>In the <a href="https://hackerpublicradio.org/eps.php?id=1976" title="Introduction to sed - part 1">last episode</a> we looked at <code>sed</code> at the simplest level. We looked at three command-line options and the '<em>s</em>' command. We introduced the idea of basic <em>regular expressions</em>.</p>
<p>In this episode we will cover all of these topics in more detail.</p>
<p>We are looking at GNU <code>sed</code> in this series. This version contains many extensions to POSIX <code>sed</code>. These extensions provide many more features, but <code>sed</code> scripts written this way are not portable.</p>
<p>To read the rest of the notes for this episode follow this link: <a href="https://hackerpublicradio.org/eps/hpr1986/full_shownotes.html" class="uri">https://hackerpublicradio.org/eps/hpr1986/full_shownotes.html</a></p>
<p><strong>Note:</strong> Since recording the audio I have added a sixth example to the full notes to cover the topic of word boundaries, which I had omitted at the time.</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>GNU <code>sed</code> manual:
<ul>
<li>HTML Manual: <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>Section on <em>Invocation</em>: <a href="https://www.gnu.org/software/sed/manual/sed.html#Invoking-sed" class="uri">https://www.gnu.org/software/sed/manual/sed.html#Invoking-sed</a></li>
<li>Section on <em>Escapes in Regular expressions</em>: <a href="https://www.gnu.org/software/sed/manual/sed.html#Escapes" class="uri">https://www.gnu.org/software/sed/manual/sed.html#Escapes</a></li>
</ul></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>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>Example files for processing:
<ul>
<li><a href="https://hackerpublicradio.org/eps/hpr1986/full_shownotes.html" class="uri">https://hackerpublicradio.org/eps/hpr1986/full_shownotes.html</a> (extracted from <a href="https://hackerpublicradio.org/about.php" class="uri">https://hackerpublicradio.org/about.php</a>)</li>
<li><a href="https://hackerpublicradio.org/eps/hpr1986/sed_demo2.txt" class="uri">https://hackerpublicradio.org/eps/hpr1986/sed_demo2.txt</a> (downloaded from <a href="https://hackerpublicradio.org/stats.php" class="uri">https://hackerpublicradio.org/stats.php</a>)</li>
</ul></li>
</ul>