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:
cat filenames | sed 's/foo/bar/'
find . -name "*.htm" | sed "s/\(.*\)/mv '\1' '\1l'/" | (sh)
Next topic: awk