sed
Stream editor for filtering and transforming text
Overview
Performs basic text transformations on an input stream (a file or input from a pipeline). Primarily used for substitution or for find-and-replace.
Syntax
sed [OPTION]... [SCRIPT] [INPUTFILE...]Examples
$ sed 's/old/new/g' file.txt
Replace all occurrences of 'old' with 'new' in file.txt.
Related Commands
sedstreameditorfiltertransformtextreplacesubstitute