aboutsummaryrefslogtreecommitdiff
path: root/shell01/ex04/MAC.sh
diff options
context:
space:
mode:
Diffstat (limited to 'shell01/ex04/MAC.sh')
-rwxr-xr-xshell01/ex04/MAC.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/shell01/ex04/MAC.sh b/shell01/ex04/MAC.sh
new file mode 100755
index 0000000..8c5f269
--- /dev/null
+++ b/shell01/ex04/MAC.sh
@@ -0,0 +1 @@
+ifconfig -a | grep -E "ether\s([0-9a-f]{2}:){5}[0-9a-f]{2}" | cut -f 1