sed replace one line with two lines code example
Example 1: sed replace in multiple file
sed -i 's/abc/xyz/g' xaa1 xab1
Example 2: replace line with match sed
Use d option at the end of sed command string for deleting line of matches.
sed -i "" "s/matching_pattern/d" file.txt