Text only
|
Text with Images
Cobra Forum
Linux => New to Ubuntu => Topic started by: mahesh on Aug 18, 2023, 07:24 AM
Title:
grepping MAC addresses to file
Post by:
mahesh
on
Aug 18, 2023, 07:24 AM
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:
Code
Select
Expand
grep -i '[0-9A-F]\{2\}\(:[0-9A-F]\{2\}\)\{5\}' <file-name>
Text only
|
Text with Images