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