Sed append after match line

You can append any value after match line using sed command

Here is simple file.

$ cat file
line1
line2
line3
line5

Run command to append new value from sed
$ sed -i '/search_with_match_line/a append_with' file


Post a Comment

Mới hơn Cũ hơn