sed command builder

sed is a stream editor. In the simplest examples, it takes a text file and a command, then perform the command for each line. The basic commands are prepend, append, change, replace, delete. For example, to delete lines from 2 to 4 of input.txt, we can run sed -e '2,4d' < input.txt > output.txt.

This website helps you build simple sed commands.

Condition
Command

Result