sed insert new line before match code example Example: sed add line after match sed '/^anothervalue=.*/a after=me' test.txt