I have a file that has multiple lines for different ethernet ports with their respective MAC addresses. I am trying to replace the mac address and the ethernet port name with my custom mac address using SED command. But I am not able to get the regex right with SED to replace mac address.
The file extract looks like:
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:0c:29:d9:00:ae", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"
Can someone please me getting the sed command right for replacing mac address only 1 line at a time?