Tag Archives: sed insert line before match

sed tutorial: sed insert line before match

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 newLine’ file Continue reading

Posted in Sed Command, Text Processing | Tagged , , | Comments Off on sed tutorial: sed insert line before match