Forums
New posts
Articles
Product Reviews
Policies
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Menu
Log in
Register
Install the app
Install
Forums
Apple Computing Products:
macOS - Operating System
Number of interfaces in ifconfig
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="imfromwales" data-source="post: 1550795" data-attributes="member: 299959"><p>How can I find the number of network interfaces which are present on any Mac.</p><p></p><p>I am writing a script which will be ran on different kinds of Mac, and they will presumebably have a different number of interface connections. When i type "ifconfig | grep ether" then i get 3 interfaces, but how can I get a numerical value for the number of interfaces on a given device?</p><p></p><p>I will be writing a loop which needs the numerical value of interfaces in ifconfig.</p><p></p><p>Thanks for all help</p></blockquote><p></p>
[QUOTE="imfromwales, post: 1550795, member: 299959"] How can I find the number of network interfaces which are present on any Mac. I am writing a script which will be ran on different kinds of Mac, and they will presumebably have a different number of interface connections. When i type "ifconfig | grep ether" then i get 3 interfaces, but how can I get a numerical value for the number of interfaces on a given device? I will be writing a loop which needs the numerical value of interfaces in ifconfig. Thanks for all help [/QUOTE]
Verification
Post reply
Forums
Apple Computing Products:
macOS - Operating System
Number of interfaces in ifconfig
Top