Two command output

netstat -n | grep ESTAB |grep :80 | tee /dev/stderr | wc -l
Summarize established connections after netstat output. Using tee and /dev/stderr you can send one command output to terminal before executing wc so you can summarize at the bottom of the output.
Sample Output
tcp        0      0 10.0.10.200:80          148.63.119.16:63467     ESTABLISHED
tcp        0      0 10.0.10.200:80          124.53.232.196:46450     ESTABLISHED
tcp        0      0 10.0.10.200:80          44.53.132.192:46446     ESTABLISHED
tcp        0      0 10.0.10.200:80          74.67.40.31:63571        ESTABLISHED
tcp        0      0 10.0.10.200:80          48.211.53.20:53639      ESTABLISHED
tcp        0      0 10.0.10.200:80          48.211.53.21:42207      ESTABLISHED
tcp        0      0 10.0.10.200:80          89.218.19.62:41217      ESTABLISHED
tcp        0      0 10.0.10.200:80          77.67.4.68:38614        ESTABLISHED
tcp        0      0 10.0.10.200:80          92.122.188.102:36235    ESTABLISHED
tcp        0      0 10.0.10.200:80          92.122.188.94:34494     ESTABLISHED
tcp        0      0 10.0.10.200:80          23.72.224.124:37407     ESTABLISHED
tcp        0      0 10.0.10.200:80          23.3.13.212:61127       ESTABLISHED
12

3
2016-06-26 11:37:19

1 Alternatives + Submit Alt

What Others Think

Found a lot of useful information, thanks! jiofi.local.html
malkovich · 46 weeks ago
Austin is the state capital of Texas, an inland city bordering the Hill Country region. Home to the University of Texas flagship campus, Austin is known for its eclectic live-music scene centered around country, blues and rock. MaxRemind Inc top rank medical billing company of USA offers medical billing services in Austin, TX, medical credentialing services along with home health agency software for home healthcare companies companies in Austin, TX USA.
stevematt · 20 weeks and 3 days ago
any new recent updates with the forum?? dentalimplantselpasotx.com
Killersmile · 11 weeks and 2 days ago
I tried to add this to my current program and I am having a time troubleshooting it. Is there an update on this one? https://mydecorative.com/best-type-of-retaining-wall-block-brick-concrete-wood/
DanVillas · 9 weeks ago
I have seen a gigantic heap of such people who are warily reformist. Just have a look http://www.correctthesentence.com/ i hope you will like it. These people are refined now at the same time, their choices are totally conflicting.
tinakutch · 4 weeks ago
I'm mind blowing to perceive how police meeting with the Aughton region board would go. Things are fundamentally turned around clearly at present considering the executing of George Floyd. You can visit www.duplicatechecker.net to check duplicates in files. We should see them ordinary.
tinakutch · 4 weeks ago
I chuckled savage while exploring this social affair. Just have a look www.englishgrammarcheck.org/most-popular-free-english-grammar-check-applications/ it will help you a lot. Each and every line of this social affair is so confounding. Really, I have separated this article on different events.
tinakutch · 4 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: