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

How to blacklist or disable USB module in Red Hat 7

To improve security in our environment many times we have to blacklist certain modules from getting loaded in our setup to avoid any security leak. The provided procedure is tested with Red Hat Enterprise Linux