sed tutorial: sed insert line before match July 12, 2020 Sed insert a line before match, you can use the sed function: i, add a new line before the matched string. syntax: sed '/option/i...