In basic usage it is used for ‘search and replace’ with strings.
echo "The quick brown fox jumps over the lazy dog" | sed 's/dog/cat/'
returns
"The quick brown fox jumps over the lazy cat"
Sed really shines when regular expressions are used with it.
Source: command line – What is sed and what is it used for? – Ask Ubuntu
command line – What is sed and what is it used for? was last modified: February 9th, 2019 by