sed(1)

While in some ways similar to an editor which permits scripted edits (such as ed), sed works by making only one pass over the input(s), and is consequently more efficient. But …

command line

sed reads the input from a file stored in the filesystem if a filename is specified in the command-line arguments during its invocation, or from stdin if no filename is specified. …

Sed Command in Linux with 15 Practical Examples – TecAdmin

How to use variables in sed command

WEBsed -i "/$variable/c ${variable}1" file.txt. Changes: If you have a before a $, it makes the shell insert a literal $ in the string. Instead put an extra to escape the first …

sed, a stream editor

A stream editor is used to perform basic text transformations on an input stream (a file or input from a pipeline). While in some ways similar to an editor which permits scripted …

Using the 'sed' Command in Bash/Linux, With Examples

The sed (Stream EDitor) command in Bash/Linux reads text from a stream or file and performs line-by-line operations on it based on a set of supplied criteria. …

A Practical Guide to GNU sed With Examples

How to use an address in a sed script to edit specific lines. How to use the commands p rint and d elete. How to invert the address. How to use more than one …

How to Use the sed Command on Linux

The Linux sed command is a powerful text editor without an interface, used for manipulating text in files and streams. Sed can select, substitute, add, delete, and modify text in files and streams, providing …