ubuntu sed add line after match code example
Example 1: sed add line after match
sed '/^anothervalue=.*/a after=me' test.txt
Example 2: ubuntu sed insert line after
sed '/searched text here/a text to replace here' file/location/fileName.txt
sed '/^anothervalue=.*/a after=me' test.txt
sed '/searched text here/a text to replace here' file/location/fileName.txt