<h1 id="introduction-to-sed---part-2">Introduction to sed - part 2</h1>
<p>In the <a href="https://hackerpublicradio.org/eps/hpr1976/index.html" 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><a href="hpr1986_full_shownotes.html" class="uri">To read the rest of the notes for this episode follow this link.</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><a href="https://hackerpublicradio.org/eps/hpr1976/index.html" class="uri"><em>Introduction to sed - part 1</em>: hpr1976</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/hpr1986/sed_demo2.txt" class="uri">sed_demo2.txt</a> (extracted from <a href="https://hackerpublicradio.org/about.php" class="uri">the 'about' page on the HPR site in 2016</a>)</li>
<li><a href="https://hackerpublicradio.org/eps/hpr1986/hpr1986/sed_demo3.txt" class="uri">sed_demo3.txt</a> (downloaded from <a href="https://hackerpublicradio.org/stats.php" class="uri">the 'stats' page from the HPR site in 2016</a>)</li>
</ul></li>
</ul>
