Linux GNU SED
Language: English
Category: Ebook - Computer/Internet
Categories: Computer/Internet
Uploader: user314159
Uploaded At: 2023-08-22 22:43:21
Linux CLI, sed -- stream editor -- 2021
Description
You are likely to be familiar with the "Find and Replace" dialog box from a text editor, word processor, IDE, etc to search for something and replace it with something else.
sed is a command line tool that is similar, but much more versatile and feature-rich. Some of the GUI applications may also support regular expressions, a feature which helps to precisely define a matching criteria. You could consider regular expressions as a mini-programming language in itself, designed to solve various text processing needs.
The command name sed is derived from stream editor. Here, stream refers to data being passed via shell pipes.
Thus, the command's primary functionality is to act as a text editor for stdin data with stdout as the output target.
Over the years, functionality was added to edit file input and save the changes back to the same file.