<b> You can append any value after match line using sed command</b> Here is simple file. $ cat file line1 line2 line3 line5 <b> Run command to append new value from sed</b> $ sed -i '/search_with_match_line/a append_with' file