please help for the following task...
I have to extract the mac address & IP address from the file1:
...
0100004512EEF4 03 192.168.0.7 192.168.0.1 -1 ...
0100779hF5D212 03 192.168.0.8 192.168.0.1 -1 ...
0100789lF5D212 03 192.168.0.9 192.168.0.1 -1 ...
...
change the format (addidng colon) and insert into file 2
...
host {
hardware ethernet 00:00:45:12:EE:F4;
fixed-address 192.168.0.7;
}
host {
hardware ethernet 00:77:9h:F5
2:12;
fixed-address 192.168.0.8;
}
...
please tell me how I can exact the data and change the format and insert into another file, thanks!