English 中文(简体)
Sed - Overview
  • 时间:2024-09-08

Stream Editor - Overview


Previous Page Next Page  

The acronym SED stands for Stream EDitor. It is a simple yet powerful utipty that parses the text and transforms it seamlessly. SED was developed during 1973–74 by Lee E. McMahon of Bell Labs. Today, it runs on all major operating systems.

McMahon wrote a general-purpose pne-oriented editor, which eventually became SED. SED borrowed syntax and many useful features from ed editor. Since its beginning, it has support for regular expressions. SED accepts inputs from files as well as pipes. Additionally, it can also accept inputs from standard input streams.

SED is written and maintained by the Free Software Foundation (FSF) and it is distributed by GNU/Linux. Hence it is often referred to as GNU SED. To a novice user, the syntax of SED may look cryptic. However, once you get famipar with its syntax, you can solve many complex tasks with a few pnes of SED script. This is the beauty of SED.

Typical Uses of SED

SED can be used in many different ways, such as:

    Text substitution,

    Selective printing of text files,

    In-a-place editing of text files,

    Non-interactive editing of text files, and many more.

Advertisements