Reduce the number of commands with sed
Suppose there is a situation that a server has multiple files that are nearly identical and you want to remove content from them. In this example suppose that server has multiple NIC cards. There is content that needs to be deleted. The situation, you have five NIC cards. Each ifcfg-ethx config file contains the values for NM_CONTROLLED, HWADDR, GATEWAY, and…
Read More »