hpr1976 :: Introduction to sed - part 1
What sed is and how to use it in a simple way
Hosted by Dave Morriss on Monday, 2016-02-29 is flagged as Explicit and is released under a CC-BY-SA license.
sed, stream editor, option, regular expression, substitution.
7.
The show is available on the Internet Archive at: https://archive.org/details/hpr1976
Listen in ogg,
spx,
or mp3 format. Play now:
Duration: 00:44:28
Learning sed.
Episodes about using sed, the Stream Editor. It's a non-interactive editor which you can use to make simple changes to data, which is how many people use it. However, sed also has a lot of hidden power, especially in the GNU version.
Introduction to sed - part 1
sed
is an editor which expects to read a stream of text, apply some action to the text and send it to another stream. It filters and transforms the text along the way according to instructions provided to it. These instructions are referred to as a sed
script.
The name "sed" comes from Stream Editor, and sed
was developed from 1973 to 1974 as a Unix utility by Lee E. McMahon of Bell Labs. GNU sed
added several new features including better documentation, though most of it is only available on the command line through the info
command. The full manual is of course available on the web.
To read the rest of the notes for this episode follow this link.
Links
- GNU
sed
manual: https://www.gnu.org/software/sed/manual/sed.html - "Sed - An Introduction and Tutorial" by Bruce Barnett: https://www.grymoire.com/Unix/Sed.html
- Example file for processing: sed_demo1.txt (extracted from the 'about' page from the HPR site in 2016)