News:

SMF - Just Installed!

Main Menu

grepping MAC addresses to file

Started by mahesh, Aug 18, 2023, 07:24 AM

Previous topic - Next topic

mahesh

I am trying to extract all MAC addresses in this format: AA:AA:AA:AA:AA:AA. I tried the following, but it did not work:
     Code:
grep -i '[0-9A-F]\{2\}\(:[0-9A-F]\{2\}\)\{5\}' <file-name>