The stream editor, sed

sed is a popular text-filtering program found on every Unix system. It has the following syntax:

sed command [files]
sed -e command1 [-e command2] [files]
sed -f script [files]

Execute sed commands, or those found in script, on standard input or files.

Get LPI Linux Certification in a Nutshell, 3rd Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.