I'd say both works. Your solution is nicer because it doesn't run grep and
wc with sudo. But we can just remove sudo completly, because `ip addr show`
works with user permissions as well and we just need to keep the sudo before
the `sed`.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/monitoring-plugins/monitoring-plugins/pull/1440#issuecomment-258985729

Reply via email to