Show number of NIC's, ports per nic and PCI address

lspci | grep Ether | awk '{ VAR=$1; split(VAR,ARR,"."); count[ARR[1]]++; LINE=$0; split(LINE,LINEARR,":"); LINECOUNT[ARR[1]]=LINEARR[3]; } END { for(i in count) { printf("PCI address: %s\nPorts: %d\nCard Type: %s\n", i, count[i], LINECOUNT[i]) } }'

By: bpfx
2009-02-05 14:24:59

What Others Think

grep overload! lspci | awk ' /Ether/ { VAR=$1; split(VAR,ARR,"."); count[ARR[1]]++; LINE=$0; split(LINE,LINEARR,":"); LINECOUNT[ARR[1]]=LINEARR[3]; } END { for(i in count) { printf("PCI address: %s\nPorts: %d\nCard Type: %s\n", i, count[i], LINECOUNT[i]) } }'
mpb · 656 weeks and 3 days ago
Without fail, your writing style is top professional; even your website also looks amazing thank you for posting. N95 Face Mask
KayGasaway · 18 weeks and 1 day ago
This was a shocking post. It has some look at here fundamental data on this subject.
jackson2321 · 15 weeks ago
Find the Maldives Tour Package & right Luxury hotel for your Maldives Honeymoon or Holidays Rawnaq Tourism recommends the Best Maldives Hotels depending on your individual needs
KayGasaway · 14 weeks ago
If you cannot find your favorite ???? ?for comparison, please contact us Ting Diamond, we will definitely be able to find your favorite diamon ????
KayGasaway · 13 weeks and 3 days ago
Esteé Jackson, MBA – Consultant Business Coach & life coach ?Helping your business build and grow. 40+ hours a week is a lot of time to give to somebody else, doing something you don’t like… What if you could be one of those “free” people? Visit my site and get a formoula for a successful buisness, Its just a click and You will get a worthful course, You may not find anywhere else. So hurry up and give yourself a chance. Thank You.
KayGasaway · 13 weeks and 2 days ago
We are cabinet and granite countertop experts specializing in kitchen and bathroom remodeling in the state of Georgia. Georgia Cabinet Company is proud to offer luxury cabinets and granite countertops to all Duluth, GA, Lilburn, GA, Evans, GA and surrounding cities’ residents. Please visit our site ?and Contact us today for more information about what Georgia Cabinet Company can do for you! Our goal is your satisfaction!
KayGasaway · 13 weeks and 2 days ago
MYSTIQ is based on the Gold Coast and services lash professionals worldwide. Purchase high quality eyelash extension kit and get Free shipping, Bulk Discounts, & 50% off for retailers. Visit our">site ?for more info. Thank You.
ayesha · 13 weeks and 2 days ago
In the past decade, there has been a dramatic interest in cosmetic dentistry. We can Change the size, shape, and alignment of certain teeth. Reform Dentistry so much more than a dental office. We made a place where you can feel safe and assured that your smile is in good hands. Please visit our">site ?to know more about Cosmetic dental treatments can do and book an appointment at Fredericksburg, VA 22407.
KayGasaway · 13 weeks and 1 day ago
Water and Waste Plumbing are your Local Plumber Darwin. We are certified plumbers and proudly offer an array of plumbing services at affordable prices. plumber darwin
jackson2321 · 13 weeks and 1 day ago
If you own vehicles or employ drivers, you should have software to manage those vehicles and drivers; otherwise, you will soon lose control. It's that simple! GPS vehicle tracking - #1 gps tracking, fleet management platform AVLView is a cloud based GPS vehicle tracking and fleet management platform for automating fleet operation, It uses GPS ?GPRS technologies to track and monitor vehicles, personnel, cargo using GPS tracker installed in vehicles. vehicle tracking
ayesha · 13 weeks and 1 day ago
Winner of Best of Yolo County 2020 and Best of Weedmaps Kind Farma is Davis Californias Premier medical and recreational Cannabis dispensary.">kind farms
jackson2321 · 13 weeks and 1 day ago
Dentluxe is your one stop shop for all things tooth gems and teeth whitening for training and wholesale supplies in Australia. We pride in offering top quality products at lowest wholesale prices guaranteed gold tooth
ayesha · 12 weeks and 3 days ago
XunReiki offers Reiki & Spiritual Healing services in Singapore for your personal Health and Well-Being. We also offer Reiki classes and other spiritual development courses. Reiki Healing
KayGasaway · 12 weeks and 2 days ago
We look forward to hearing from you so we can offer you our most competitive prices together with an unrivalled and friendly service. enamel pin manufacturer UK
BestComments74 · 11 weeks and 3 days ago
Ultra Education C.I.C exists to inspire positive and lasting change in the lives of young people who would otherwise suffer from the disadvantage of their starting point. entrepreneurship in schools
KayGasaway · 11 weeks ago
Our Nano CBD formulations are blended with all-natural, botanical ingredients. Our products are safe for your family, and they contain NO THC or any other psychoactive components. CBD Isolate Drops
KayGasaway · 10 weeks and 5 days ago
Our platform brings you close to highly acclaimed experts from diverse fields to provide specific industry-leading solutions to the businesses like yours. Connex Group
KayGasaway · 10 weeks and 2 days ago
Looking for a mobile bar hire? Have an upcoming Wedding, Birthday, Party, or Event? Book with Utopia Bars today! Free Portable Bar Hire! Mobile Bar Cash
KayGasaway · 10 weeks and 2 days ago
Anja safely stores your baby's umbilical cord blood and tissue stem cells, so you and your child can use them in the future to treat disorders, cancers, injuries, and deficiencies. cord blood banking
KayGasaway · 10 weeks and 1 day ago
Each of our streetwear t-shirts features its own signature story. The perfect t-shirts for any outfit. Stay fitted and fresh with our latest streetwear t-shirts. Streetwear Clothing
ayesha · 9 weeks and 6 days ago
Blue Financial Ballarat is one of the best financial advisors in Ballarat. We specialise in life insurance planning, retirement planning, & financial services. Financial Services in Ballarat
KayGasaway · 9 weeks and 5 days ago
Video , Marketing, & Culture ... At Vedio you will be most welcome and we will listen with great interest to your challenges, ... Casper @ vedio . dk ... video strategi
KayGasaway · 9 weeks and 4 days ago
From online shop creation to graphic design, photography, 3D modeling, copywriting and more.your one stop shop for your ecommerce design needs. ecommerce shop & creatives
KayGasaway · 9 weeks and 4 days ago
At Meadrow, our main focus is on customer satisfaction! We pride ourselves on a friendly and efficient service. Ensuring our customers are updated every step of the way, from the time of purchase to show casing their new furniture in their own home. Luxury Sofas
KayGasaway · 9 weeks and 3 days ago
DiscordHome is a discord listing website, find discord servers and communities here! You can advertise, hire, post resumes and find partners for your discord server. Nsfw discord - Visit our site ?for more information, Thank You.
KayGasaway · 9 weeks and 2 days ago
Wow, What a Excellent post. I really found this to much informatics. It is what i was searching for.I would like to suggest you that please keep sharing such type of info.Thanks
jackson2321 · 8 weeks and 6 days ago
The farmmaster tractors are full of the latest and most advanced technological features that make farming extremely easy and efficient. compact tractor attachments ?can take on any task, big or small Beckside Machinery has a compact tractor attachment or accessory to help you with, - Maintaining grounds, whether large or small, as well as carrying out jobs around the farm, are both necessary musts.
ayesha · 8 weeks and 4 days ago
casino 2020 is under In Touch Games Ltd’s operation, who is licensed and regulated by the UK Gambling Commission. Casino 2020 has many sister sites like Dr Slot, Spin247, Pocket Win, Mr Spin, Cashmo, and more. casino 2020
ayesha · 7 weeks and 1 day ago
Rotating iPad Cases & Covers: Rhino Cases UK, The Original Rotating iPad Case company Over 1 Million iPad Cases Sold Worldwide, Free Delivery on all UK orders,Pleasse visit this URL ?for amazing deals & offers. Get 10% off your next purchase and be eligible for free shipping when you subscribe.
KayGasaway · 6 weeks and 5 days ago
Bee Queen Fillers has already proven to be a reliable supplier of aesthetic products and medical tools worldwide. We are proud of our competitive price, supply capabilities, and professional service. Click this url: ?to visit our website, Bee Queen Fillers is one solution to the multiple worries about supplies of aesthetic products and instruments. Please visit our website to get 10% Discount on 100% orignal Products. Thank You.
KayGasaway · 6 weeks and 4 days ago is a dedicated portal to share detailed information regarding various government schemes. We cover central govt's and state wise schemes. Be advised that this is not official website of any scheme and is not linked with any Indian govt's ministry.">New Sarkari Yojana
KayGasaway · 6 weeks and 4 days ago
Buy healing crystal bracelets ?for chakra balancing, reiki energy healing, meditation, yoga, stress, anxiety depression Personalized to your healing needs and intentions Crystal bracelets to attract abundance, luck, money, love, remove negativity, enhance psychic power, increase willpower, motivation, and more!
KayGasaway · 5 weeks and 5 days ago
Innerfyre Co | Candles, Hush candles, Essential Oils, and Scents - Essential Oil Candles That Inspire Joy, Visit our website & View our best-selling scented candle singapore, essential oil roll-ons, and room sprays and pillow mists.
KayGasaway · 5 weeks and 5 days ago
Best Baby Jogging Stroller Reviews, Top Picks and Buying Guides, At Baby Jogging Stroller, You ll Get the Jogging Stroller Infomation as Best, Top Picks, Buying Guide, Stroller Reviews and Buying Guide, Please visit our website for more information, Thank You. site
KayGasaway · 5 weeks and 4 days ago
5 Remarkable Weight Loss Pills For Women You Have Probably Never Heard Of, The latest guide to fat burners, Please visit this article, You will also discover the weight loss pill that has 2 special formulas one that burns your fat away in the day and the other that burns your fat as you sleep. latest guide to fat burners
KayGasaway · 5 weeks and 1 day ago
If you are looking for spousal sponsorship in Canada, Dreamland Immigration is skilled professional ICCRC certified Canadian immigration consultants with years of experience and numerous successful immigration cases, Our goal is getting our clients to Canada in the shortest time with lowest cost possible through a variety of avenues. We have made it our primary goal to assist our clients in persuading the authorities to grant them a visa.">spousal sponsorship
KayGasaway · 4 weeks and 6 days ago
Howley Carpet Providing carpet cleaner cork ?with professional and reliable Prices cleaning services to domestic and commercial customers in Fermoy, Co Cork, Please visit our website for more details, Thank You.
KayGasaway · 4 weeks and 5 days ago
Many homework on the continual hunt along with offstage on the road to winning. Definitely not attached, simple to-fall as a result of wayside; And not investigation, afterward into a path travel toward the black. spyfone
jackson2321 · 4 weeks and 3 days ago
Many homework on the continual hunt along with offstage on the road to winning. Definitely not attached, simple to-fall as a result of wayside; And not investigation, afterward into a path travel toward the black. phone tracker
jackson2321 · 4 weeks and 2 days ago
Elevate your productivity with our Software. software de control de documentos ?(Document management software), Control all the processes of your company, with QUALITYWEB 360 you will have everything in one place with instant analysis, which will allow you to increase the productivity of your company at any time and in any place.
KayGasaway · 3 weeks and 5 days ago
Best Hercules Cycles in India Buyers Guide, List of Hercules cycle online and complete buyers guide helps you to choose the best one and these are available at low cost. Find out more by visiting the True Reviews website ?for the Online Products in India.
KayGasaway · 2 weeks ago
Kama Delivery Catering ?? Service ?????? based in Hong Kong, provide global dishes & Takeway services ???? ?& promotions with high-quality ingredients and providing a variety of cuisines such as salads, snacks, vegan food and main dishes. Apart from à la carte food, they also provide party food delivery for christmas meal ???? wedding event, kids birthday party catering ?????? etc. They also accept large-scale catering services for large and small birthday parties, banquets, company events, friend gatherings or children's birthday parties, Kama is one of the leading catering service in Hong Kong">????
KayGasaway · 1 week and 2 days ago
I would like to say that this blog really convinced me to do it! Thanks, very good post. internet
KayGasaway · 1 week and 1 day ago
Nice post. I was checking constantly this blog and I’m impressed! Extremely useful info specially the last part I care for such information a lot. I was seeking this certain info for a long time. Thank you and good luck. their explanation
KayGasaway · 1 week and 1 day ago
Cet article décrit les différents types de soutien dorsaux et lombaires disponibles. Découvrez des modèles avec thermothérapie, magnétothérapie ou gonflables. ceinture lombaire chauffante
KayGasaway · 1 week and 1 day ago
Premium eyelid anti aging device that helps treat sagging eyelid skin. EvenSkyn:registered: is a manufacturer of premium skin care devices, Laser Hair Removal, Anti Aging, and helping men and women have smooth, hair free skin, Please click here ?to visit our website for more information, Thank You.
KayGasaway · 1 week ago
Jennifer Jones Fathom Realty | 937-516-7552 | Real Estate Agent, Central Ohio Realty offers information for New Construction Home, Buying, and Selling Search for New Home Build, Prelisting & properties in the Columbus, Ohio area, Please viasit website for more information, Thank You. New Home Build
KayGasaway · 5 days ago
WinSlot : Casino Online Terpercaya di Indonesia, WinSlot merupakan situs judi online dengan winrate tinggi yang menyediakan permainan judi slot online uang asli paling populer di Indonesia.
KayGasaway · 4 days ago
Skhokho Company Software Cloud Based Business Management Software, CRM, HRM, SaaS, Business Management Software for Small Business, or Medium Sized Enterprises, Packaged with everything your company needs to manage HR files, employee leave, team tasks, customer information, client invoices, projects milestones and tasks and sales CRM. Please visit our website & Start with a 14-day FREE trial - no credit card needed. Thank You. Business Management Software for Small Business
KayGasaway · 4 days ago
Get Your Mobile Phone Repaired by Certified Professionals, Authorized mobile repair service center Axiom mobile Care, Get Your device repaired by cerified Professionals. Stay home & Stay safe, Your safety is our priority, Get fix my phone ?service without moving you out. Please visit our mobile repair shop website for more info & details.
KayGasaway · 1 day ago
#1 Supplier of Frozen Potatoes sticks ????? ????? ?and Appetizers for Frying from McCain & Lotussa in Saudi Arabia, Free Delivery. We provide you with several brands of ready-to-fry potatoes from McCain and Lotusa through the Arzaq app. Please visit this mentioned anchor for more info.
KayGasaway · 11 hours ago

What do you think?

Any thoughts on this command? Does it work on your machine? Can you do the same thing with only 14 characters?

You must be signed in to comment.

What's this? is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.

Share Your Commands

Stay in the loop…

Follow the Tweets.

Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.


Subscribe to the feeds.

Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):

Subscribe to the feed for: