sed :Replace whole line when match found

Here our requirement is to replace a line with our content when a match is found with in the file Our sample file /tmp/file This is line one This is line two This is line three This is line four Here we will search for line having the string "two" and replace the complete line ... Read more

close button