diff options
Diffstat (limited to 'shell01/ex04')
| -rwxr-xr-x | shell01/ex04/MAC.sh | 2 |
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" |
