Prepending lines

Insert text before line 5

$ sed '5i line number five' file.txt

Insert "Example: " before each line that contains "hello"

$ sed '/hello/i Example: ' file.txt
Comments