ubuntu sed insert line after 1

ubuntu sed insert line after

sed  '/searched text here/a text to replace here' file/location/fileName.txt

Here is what the above code is Doing:
1. sed is the command
2. ‘/searched text here/’ is the text you want to search for
3. ‘a’ is the command to add text after the searched text
4. ‘text to replace here’ is the text you want to add
5. ‘file/location/fileName.txt’ is the file you want to edit

Similar Posts