Hy,
Can someone help me with splitting mac addresses from a log file? 🙂
This:
000E0C7F6676
should be:
00:0E:0C:7F:66:76
Atm i split this with OpenOffice but with over 200 MAC Address’ this is very boring and slow…
It would be nice if the solution is in bash. 🙂
Thanks in advance.
A simple sed script ought to do it.
That’ll take a list of mac addresses in
myFile, one per line, and insert a ‘:’ after every two hex-digits, and finally remove the last one.