The sed command

sed stands for "Stream EDitor". It takes data from standard input, rewrites it according to the commands specified, and writes the changed data to standard output. sed can also read commands from a script file

sed [options] [script]

The most common sed script command is the search and replace command. It is used as follows:

s/search expression/replace expression/

Examples:


Next topic: awk