sed
Filter and transform text as a stream editor.
Syntax
$sed [OPTIONS] COMMAND [FILE...]
Examples
Examples
$sed 's/old/new/g' file.txt
Examples
$sed -i 's/old/new/g' file.txt
Typical use cases
sed 's/old/new/' file.txt
sed -i 's/old/new/' file.txt
Note
Use -i carefully; it edits files in place.
Export