To find the count of each open file on a system (that supports losf)

sudo lsof | awk '{printf("%s %s %s\n", $1, $3, $NF)}' | grep -v "(" | sort -k 4 | gawk '$NF==prv{ct++;next} {printf("%d %s\n",ct,$0);ct=1;prv=$NF}' | uniq | sort -nr

2
By: bpfx
2009-02-05 14:18:57

What Others Think

private investigator las vegas I have been looking for this!
yeoyeo · 78 weeks and 6 days ago
Positive site, where did u come up with the information on this posting?I have read a few of the articles on your website now, and I really like your style. Thanks a million and please keep up the effective work. N95 Face Mask
KayGasaway · 47 weeks and 3 days ago
I needed to thank you for this incredible read!! I unquestionably adored each and every piece of it. I have you bookmarked your site to look at the new stuff you post. smm panel
KayGasaway · 44 weeks and 6 days ago
I needed to thank you for this incredible read!! I unquestionably adored each and every piece of it. I have you bookmarked your site to look at the new stuff you post. smm panel
KayGasaway · 44 weeks and 6 days ago
The first phase the preparation should, theoretically, be uninfluenced by the intended intensity and duration of the sound which is subsequently produced. In fact, however, so quickly are the three phases accomplished that the pianist rarely has capacity to think, in performance, of each phase separately. CBD gummies reviewed by CFAH.org
jackson2321 · 44 weeks and 4 days 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. solahart repairs
KayGasaway · 41 weeks and 5 days ago
Enamel Badges provides a massive range of custom enamel badges in the UK. we offer soft and hard enamel badges, die struck badges, and printed badges. enamel pins UK
KayGasaway · 40 weeks and 3 days ago
When a blind man bears the standard pity those who follow…. Where ignorance is bliss ‘tis folly to be wise…. Kansas City gas water heater installation
KayGasaway · 36 weeks and 4 days ago
Buy dermal fillers in our online shop https://beequeenfillers.com/dermal-fillers-en/ ?Best quality, fast shipping, popular brands like Juvéderm, Restylane, Fillmed, Revolax, Sculptra ect.
KayGasaway · 35 weeks and 5 days ago
Money Magnet Crystal Bracelet | Attract Wealth, Prosperity, Abundance - Soul Charms. Our money bracelet ?is handmade and the perfect bracelet to wear to bolster your manifestation of wealth, abundance, success, and financial prosperity.
KayGasaway · 35 weeks ago
Are yoou looking for visitor visa to Canada, Dreamland Immigration is skilled professional ICCRC certified Canadian immigration consultants with years of experience and numerous successful immigration cases, We manage our client’s case from start point up to the final stage. Please visit our website for more information, Thank You.
KayGasaway · 33 weeks ago
Beckside Machinery provides reputable brands of Compact, best compact tractors ?for Sale in UK, We sell new and used Compact Tractors and a complete range of Compact Tractor Attachments, Please visit our website for more details. Thank You.
KayGasaway · 32 weeks and 4 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 , essential oil roll-ons, and room sprays and pillow mists.
KayGasaway · 31 weeks and 6 days ago
Elevate your productivity with our software iso 9001. Free Trial QUALITYWEB 360 for 14 days and convince yourself we are the best option to get the ISO 9001 Certification.
KayGasaway · 31 weeks and 2 days ago
Howley Carpet Providing Carpet Cleaning service in 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 · 30 weeks and 4 days 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.
KayGasaway · 30 weeks ago
Premium eyelid anti aging device that helps treat sagging eyelid skin. EvenSkyn:registered: is a manufacturer of premium , Laser Hair Removal, Anti Aging, andhelping men and women have smooth, hair free skin, Please click to visit our website for more information, Thank You. skin care device
KayGasaway · 29 weeks and 5 days ago
Vesco Pharma Collagen C 1000 Collagen Extract Injection, Reduce wrinkles, fade scars, repair your skin, and attain the Youthful complexion you have always wanted with Vesco Pharma Collagen C 1000 Vesco Pharma Collagen C 1000 is a potent mixture of Collagen Extracts and Vitamin C in equal amounts that are delivered Intra venously IV or Intra muscularly IM to nourish your skin
KayGasaway · 29 weeks and 1 day ago
Authorized mobile service centerAxiom Care, mobile repair service center for nokia repair, samsung repair, huawei repair, iphone repair & mobile screen repair center proefessionaly for all other major brands. Our 20+ years of experience by authorization from all the major Brands will guide you through.
KayGasaway · 29 weeks and 1 day ago
Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir   Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir Seofox.ir
seofox · 26 weeks 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?

commandlinefu.com 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.

» http://twitter.com/commandlinefu
» http://twitter.com/commandlinefu3
» http://twitter.com/commandlinefu10

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: