/macf

A tiny MAC address formatting script.

Primary LanguagePython

macf: a dumb little MAC address formatting script

About macf

macf is a basic script that takes MAC addresses in a variety of formats and outputs them in a variety of formats.

Usage

% ./macf.py acde48001122
acde48001122
ac:de:48:00:11:22
AC:DE:48:00:11:22
acde.4800.1122
ac-de-48-00-11-22
AC-DE-48-00-11-22

Or:

% cat macs.txt | ./macf.py

acde48001122 ac:de:48:00:11:22 AC:DE:48:00:11:22 ac-de-48-00-11-22 AC-DE-48-00-11-22 acde.4800.1122
367dda001122 36:7d:da:00:11:22 36:7D:DA:00:11:22 36-7d-da-00-11-22 36-7D-DA-00-11-22 367d.da00.1122
147dda001122 14:7d:da:00:11:22 14:7D:DA:00:11:22 14-7d-da-00-11-22 14-7D-DA-00-11-22 147d.da00.1122
66680c001122 66:68:0c:00:11:22 66:68:0C:00:11:22 66-68-0c-00-11-22 66-68-0C-00-11-22 6668.0c00.1122
66680c001122 66:68:0c:00:11:22 66:68:0C:00:11:22 66-68-0c-00-11-22 66-68-0C-00-11-22 6668.0c00.1122
823692001122 82:36:92:00:11:22 82:36:92:00:11:22 82-36-92-00-11-22 82-36-92-00-11-22 8236.9200.1122
823692001122 82:36:92:00:11:22 82:36:92:00:11:22 82-36-92-00-11-22 82-36-92-00-11-22 8236.9200.1122
823692001122 82:36:92:00:11:22 82:36:92:00:11:22 82-36-92-00-11-22 82-36-92-00-11-22 8236.9200.1122
823692001122 82:36:92:00:11:22 82:36:92:00:11:22 82-36-92-00-11-22 82-36-92-00-11-22 8236.9200.1122
823692001122 82:36:92:00:11:22 82:36:92:00:11:22 82-36-92-00-11-22 82-36-92-00-11-22 8236.9200.1122
644bf0001122 64:4b:f0:00:11:22 64:4B:F0:00:11:22 64-4b-f0-00-11-22 64-4B-F0-00-11-22 644b.f000.1122
38c986001122 38:c9:86:00:11:22 38:C9:86:00:11:22 38-c9-86-00-11-22 38-C9-86-00-11-22 38c9.8600.1122