《hpr1976 :: Introduction to sed - part 1》 - 免费馆藏音频

《hpr1976 :: Introduction to sed - part 1》 - 免费馆藏音频

作者:Dave Morriss

1 / 1hpr1976

00:00
00:00
1 章节
  • 1. hpr1976

关于

Summary: What sed is and how to use it in a simple way

Series: Learning sed

Source: [https://hackerpublicradio.org/eps/hpr1976/index.html](https://hackerpublicradio.org/eps/hpr1976/index.html)

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](https://www.gnu.org/software/sed/manual/sed.html)

  • "Sed - An Introduction and Tutorial" by Bruce Barnett: [https://www.grymoire.com/Unix/Sed.html](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)