Definition, Meaning & Synonyms
sed
Noun
/sɛd/
Definition
A stream editor that allows you to perform basic text transformations on an input stream (a file or input from a pipeline).
Examples
- Using sed, you can easily replace text in a file without opening it.
- Example: sed ‘s/oldtext/newtext/g’ filename.txt changes all instances of ‘oldtext’ to ‘newtext’ in the specified file.
- It is frequently used in shell scripts for text manipulation.
Meaning
The name ‘sed’ comes from ‘stream editor’, which is a program that can be used to modify text in a simple and efficient manner while processing data in a stream.
Synonyms
- stream editor
- text processor