What's this?

commandlinefu.com is the place to record those command-line gems that you return to again and again.

Delete that bloated snippets file you've been using and share your personal repository with the world. 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.

Get involved!

You can sign-in using OpenID credentials, or register a traditional username and password.

First-time OpenID users will be automatically assigned a username which can be changed after signing in.

Universal configuration monitoring and system of record for IT.

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:



May 19, 2015 - A Look At The New Commandlinefu
I've put together a short writeup on what kind of newness you can expect from the next iteration of clfu. Check it out here.
March 2, 2015 - New Management
I'm Jon, I'll be maintaining and improving clfu. Thanks to David for building such a great resource!

Top Tags



Psst. Open beta.

Wow, didn't really expect you to read this far down. The latest iteration of the site is in open beta. It's a gentle open beta-- not in prime-time just yet. It's being hosted over at UpGuard (link) and you are more than welcome to give it a shot. Couple things:

  • » The open beta is running a copy of the database that will not carry over to the final version. Don't post anything you don't mind losing.
  • » If you wish to use your user account, you will probably need to reset your password.
Your feedback is appreciated via the form on the beta page. Thanks! -Jon & CLFU Team

Awk: Perform a rolling average on a column of data

Terminal - Awk: Perform a rolling average on a column of data
awk 'BEGIN{size=5} {mod=NR%size; if(NR<=size){count++}else{sum-=array[mod]};sum+=$1;array[mod]=$1;print sum/count}' file.dat
2009-05-29 00:07:24
User: mungewell
Functions: awk
Awk: Perform a rolling average on a column of data

Sometimes jittery data hides trends, performing a rolling average can give a clearer view.


There are 2 alternatives - vote for the best!

Terminal - Alternatives

Know a better way?

If you can do better, submit your command here.

What others think

Balenciaga engages the application of goat buckskin that features a in a natural way applied peek. Balenciaga purses and handbags are generally astonishingly produced for you to display a mixture of development, top quality and also functionality. Just about every Balenciaga handbag is large ample to carry whatever you will definitely at any time will unquestionably need for ones day, however fashionable enough to become best equipment whether or not the idea are actually unfilled. Notables for example Nicky Hilton are usually identified having a Balenciaga handbag on his or her biceps and triceps.This will be my http://www.hermesbeltsbirkinkellybag.co.uk/ own all-time preferred tie, manufactured by your renowned Giorgio Armani, the variations as well as materials of this association tend to be classy and also stimulating. That wrap does not start the cheap nevertheless it costs definitely solo cent should you be planning to waste money. It's a jacquard soft silk tie up with subtle visual patterns and also can be found in dark blue directly from Italia.The twelve months The coming year warranties to become superb 12 months regarding Manufacturer Wall plug. You will find his or her shops based in the Home gardens Shopping center with to the north place, upon Worth Road in Hand Seashore plus The particular Boca City Center Shopping center with southern place. Most of the pieces in addition to accessories from his / her outlines can also be located throughout Macy's, Bloomingdale's and other wonderful outlet retailer.This relationship can be a attire have to have, robust azure in color and appearance excellent using soft azure and white colored shirts. Charles Tyrwhitt Skies Orange Man made fibre Relationship can be a high quality merchandise as well as tell this particular via it can be made of woll interlinings.Buying duty-free removes the actual duty requirement. Associated with method, inside the Oughout.Ohydrates. you may in addition use the internet and purchase scent coming from a good out-of-state supplier and since way stay away from shelling out income income tax. Nevertheless, you can attain damaged with distribution as well as dealing with prices.The people receiving a lot of distinctive honors together with his work like, amid significant amounts of several other men and women, Developer on the Ten years, Developer of the year, Womenswear Designer from the A dozen many months and also Men's clothing Developer of the season. He's and also the newest individual to search for the Geoffrey Beene Life span Results Prize with the CFDA.Naturally, when you from the mind-set regarding some thing Italian and then why don't you present Furla a trial? Certain, it isn't something you pay attention to since generally because Armani however it is bags will always be only because beautiful and provided in the amazingly lots of styles. They've one thing for both the typical plus the strong and also as his or her firm is recognized to care most about research & modern tools, expect a lot more bag collections which are intended to nicely everyone.Every item within the Resort 2014 Selection works extremely well quickly, everything needed and also glamorously by the lady on the road. Absolutely no amazing is at the very best of every single lady's record as being a design top.

Comment by stephanieg915 1 day ago

Elegant and stylish knock-off artist grabs are likewise the perfect present for somebody exclusive. You could potentially gift this to your mommy, brother, financing, aunt, or even friend upon a few incredibly special event. They'll definitely become happy to acquire the item please remember the gift of affection for the remainder of their day-to-day lives!Louis in addition makes the big Montsouris Game master packsack for those thus, that will pauperization a significant bag, nevertheless tend not to modification for your included borders bags or bring bags. Using this type of section bag place dissipate rightful fairly a lot everything that could possibly incorporate into a bag. This bag sometimes appears a great deal ready having pupil. It really is previous satisfactory for a few in their http://www.hermesbeltsbirkinkellybag.co.uk/ more compact publications along with dwarfish sufficient to not slow down.Suggestion just one: guide design handbagfrom on-line outlet, that has cost effective than physique shops, as it doesn't have any local rental home costs as well as other function expenses. Whilst purchasing from on-line shops, you should be more conscious of comparing viewpoints, credibility and charge from the outlets.Louis Vuitton will be developing bags and various other goods to accomplish the requirements of people. This additionally added huge esteem along with reputation along the whole world. In fact Handbags are taken into account as outstanding and also unpredictable items of capacity as well as appearance.For LV along with other businesses to cultivate globally main look, "Teng land", the idea Bronchi Plaza is positioned throughout Jingan Spot has arrived to be the most significant amount of high-end brand purchasing. In the exact same time period, the replica bags team investment decision Hisayoshi core damaged floor inside Hongqiao.Handbagzzz offers most up-to-date and a lot elegant repeat bags at quite wise as well as inexpensive prices. We now have large assortment of replica custom bags. Many of the most hot advertising copy artist handbags are: Store On the internet Taiga Natural leather Container Change Clutch * Grey: It is a aesthetically designed toned buckskin container can keep reduce modification. It features a regular square sort bag or perhaps briefcase features jumped primary in addition to folded away sides.(Do) after alert connected with proclaimed misdemeanor because described inside section (Several), does respond expeditiously to lose, or even disable having access to, the product or service that may be announced to become infringing or even become the matter regarding infringing activity.However, using the quite a few developer bags provided to decide upon, just how can anybody decide on the most well-liked and even more beneficial in comparison with some others? You could start to see the in a handbag from your status for the product, design, plus the creator. Or you could moreover present importance into a bag brand if additional interesting as well as well-known stars decide on them when gonna critical events of their own day-to-day lives.

Comment by stephanieg915 1 day ago

Your point of view

You must be signed in to comment.