diff options
| author | Charles <sircharlesaze@gmail.com> | 2019-07-03 10:38:29 +0200 |
|---|---|---|
| committer | Charles <sircharlesaze@gmail.com> | 2019-07-03 10:38:29 +0200 |
| commit | 4205989a932533f528c0fa8f76126a5b57606c0a (patch) | |
| tree | 67dfc0d4ba9704143b23e78b2976255aa7740df0 /shell01/ex04 | |
| parent | 9bde00749e9944c357267a024b3ec78d81a6799c (diff) | |
| download | piscine-4205989a932533f528c0fa8f76126a5b57606c0a.tar.gz piscine-4205989a932533f528c0fa8f76126a5b57606c0a.tar.bz2 piscine-4205989a932533f528c0fa8f76126a5b57606c0a.zip | |
shell01 ex04 corr
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" |
