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