Hide

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.
Hide

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:

Hide

News

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!
Hide

Top Tags

Hide

Functions

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

Google Spell Checker

Terminal - Google Spell Checker
spellcheck(){ typeset y=$@;curl -sd "<spellrequest><text>$y</text></spellrequest>" https://www.google.com/tbproxy/spell|sed -n '/s="[0-9]"/{s/<[^>]*>/ /g;s/\t/ /g;s/ *\(.*\)/Suggestions: \1\n/g;p}'|tee >(grep -Eq '.*'||echo -e "OK");}
2010-02-17 08:20:48
User: eightmillion
Functions: echo grep sed tee
5
Google Spell Checker

I took matthewbauer's cool one-liner and rewrote it as a shell function that returns all the suggestions or outputs "OK" if it doesn't find anything wrong. It should work on ksh, zsh, and bash. Users that don't have tee can leave that part off like this:

spellcheck(){ typeset y=$@;curl -sd "<spellrequest><text>$y</text></spellrequest>" https://google.com/tbproxy/spell|sed -n '/s="[1-9]"/{s/<[^>]*>/ /g;s/\t/ /g;s/ *\(.*\)/Suggestions: \1\n/g;p}';}

Alternatives

There is 1 alternative - vote for the best!

Terminal - Alternatives
spellcheck(){ curl -sd "<spellrequest><text>$1</text></spellrequest>" https://www.google.com/tbproxy/spell | sed 's/.*<spellresult [^>]*>\(.*\)<\/spellresult>/\1/;s/<c \([^>]*\)>\([^<]*\)<\/c>/\1;\2\n/g' | grep 's="1"' | sed 's/^.*;\([^\t]*\).*$/\1/'; }

Know a better way?

If you can do better, submit your command here.

What others think

This no longer works.

Comment by matthewbauer 337 weeks and 6 days ago

Okay wait a second...

It looks like it works if you use https://www.google.com/tbproxy/spell instead of the one without the "

Comment by matthewbauer 337 weeks and 6 days ago

What's interesting is that Google Docs uses the https://google.com/tbproxy/spell

spellcheck "new Googlers the first thing I ask is if they know"

Suggestions: Go oglers Go-oglers Google rs Google-rs Googlies

Which is the same as in the blog post:

http://googledocs.blogspot.com/2010/08/table-resizing-and-other-niceties-in.html

Comment by matthewbauer 337 weeks and 6 days ago

Thanks for the help. I've update the command.

Comment by eightmillion 337 weeks and 6 days ago

Disposable barf bags really are a favorable need if you are unwell or endure motion health problems. Outfitting all of them a dependable means to fix deal with their own ailment in a practical manner is critical. Excellent barf bags assist in making certain no chaos is done along with the bag could be discretely dumped.Sickness typically triggers individuals to throw up which could be unexpected and unchecked reply in the body, which in turn leaves them no time to locate a proper spot to alleviate them selves. Nausea or vomiting can often be together with some sort of smell that may contaminate the oxygen as well as cause others in order to experience upset. It is important to be sure that the emesis can be nicely comprised, does not create a clutter and contaminate the earth. Barf bags are a great way in order that your throw up can be very well included within the bag. A lot of people experience activity sickness when you are http://www.hermesbeltsbirkinkellybag.co.uk/ traveling, which causes their own waistlines in order to churn in addition to ache, often causing the should throw-up. Whether it be a car or truck, boat, prepare or perhaps airline barf bags are usually an outstanding device to help have puke regardless if individuals is probably not able to utilize the restroom.Schools, treatment centers as well as urgent situation rooms include and frequently make use of emesis containment bags to assist ill people fight their own illness inside a discrete manner. Barf bags are manufactured from high-density polyethylene that will makes certain that this articles tend not to flow out or even develop a wreck in any manner. These kinds of barf bags are generally sufficiently strong enough enough to be able to offer the emesis with no splilling. Likewise, most of these bags are created to be throw away along with easy to allow them to end up being easily thrown away right after make use of.The bottom level connected with bags are set with a complex technological innovation which closes these kind of barf bags completely on one side in addition to makes certain there aren't any holes or maybe available rooms where emesis could easily get divide. Whilst the bottoms of the bags usually are covered, another conclude remains open up in addition to created to make it possible for individuals to position their own lip area in the bag in addition to give.After utilize, the bag may possibly be shut having a video tape or even might be turned along with tied to support the emesis in. Both styles connected with bags can be extremely properly equipped to stop any type of splilling and let you to definitely seal your current emesis until you locate a rubbish can or some other acceptable area to discard the item. These kind of bags are easy to carry likewise to make the idea convenient to use these types of bags while on a trip. These kind of bags come in delivers connected with forty five or even installments of one thousand and will easily be purchased on the internet.Barf Bags can also be found together with spots to write down the specific patient and that is generally found in medical centers and labs when the emesis in the client should be looked at. These kinds of bags are available in packages of 55 or perhaps cases of a thousand and may definitely be ordered on the internet anytime.

Comment by stephanieg915 1 week ago

Personalized content label handbags, because of their unique yet sophisticated design and noteworthy better excellent connected with resources, are the ideal replacement for produce a pattern affirmation. In contrast, if you need to make further perceptions along with your option regarding personalized name bags, you should get an individual distinct concerning possibly 5 various uncomplicated versions and cling towards current kind tendencies within a type craze website. You are prepared to learn available much more underneath the way for creating an impact jointly with your trusted customized plastic-type material bags.Quite initial off http://www.hermesbeltsbirkinkellybag.co.uk/ , you've got to be aware that you've a enormous choice of models obtainable for personalized bags. If you do not might be prepared to find the money to receive many, you have to look for a variety which might be functional and multi-functional. Ideal right after almost all, that you will be able to have a designer brand buying totes depending upon how you want to put it to use but nevertheless, preserving ones emotion regarding variety. These Your five type possibilities range from the regular handbag, handbags, handbags, in addition to customized carry plastic material bags. Even so, handbags be to be by far the most reliable selection for trendy ladies.Developments come and go with regards to the fashion sector, but also in relation to purchasing designer bags, it is actually very best to get an elementary kind. Hence, you are certain of the preferences decision which has a prolonged long lasting attractiveness. The last development upon "the higher, the particular better" remains quite frequent amid girls that acquire artist brand totes, the buzz to the year can be mastering a lot more to those that merge trend with features.Well identified titles connected with manufacturers are nevertheless among the finest ranks for coveted artisan carriers on the inside market place at the moment. Soon after almost all, they're the companies that are presently approved to provide. Make absolutely certain that you'll be getting genuine artist looking handbags. Avoid the actual false people which means you usually are obtaining the suitable piece which is really worth your wages, nearly all for example if you are intending to acquire one specific on the internet. To get comfortable you will end up being obtaining authentic artist bags online merchants, make sure the web page is reputable.To be described as a manner assertion, exactly what these legitimate custom bags surely offer on the dining room table would be the power to reflect your own distinct style through the choice of any handbag. You will discover much more colors offered * with the typical non colored documents, for you to more vivid color techniques for example violet or perhaps reddish, are generally rising. Consequently, most of these performer type bags enable a female to seem trendy, popular, corporate, royal, or simply in relation to any kind seem you wish to match it with.As a good example, this specific year handbag variety materials a comprehensive number of seems, whether which you are generally on an off-the-cuff tour with the location, or perhaps need to have on another thing classic in addition to stylish. Inside of patterns, colours, as well as sizes * you can easlily take your personal choose to match your feeling as well as showcase ones stylish aspect.Your resolution of designer seeking bags currently have, consequently arrive at receive an method to show your current exclusive sentiment involving craze, spirits and also character. Which are definitely the time you possibly can definitely crank out a declaration!

Comment by stephanieg915 1 week ago

www.canadagoosefemmehomme2016.fr/palliser-canada-goose_261.html

www.canadagoosefemmehomme2016.fr/expedition-parka-canada-goose_210.html

www.canadagoosefemmehomme2016.fr/canada-goose-ca_288.html

www.canadagoosefemmehomme2016.fr/magasin-canada-goose_93.html

www.canadagoosefemmehomme2016.fr/magasin-d-usine-canada-goose_331.html

www.canadagoosefemmehomme2016.fr/canada-goose-resolute_66.html

www.canadagoosefemmehomme2016.fr/montebello-parka-canada-goose_287.html

www.canadagoosefemmehomme2016.fr/revendeur-canada-goose-france_401.html

www.canadagoosefemmehomme2016.fr/canada-goose-expedition-homme_207.html

www.canadagoosefemmehomme2016.fr/vetement-goose-canada_345.html

www.canadagoosefemmehomme2016.fr/canada-goose-grise-femme_269.html

www.canadagoosefemmehomme2016.fr/canada-goose-doudoune-sans-manche_166.html

www.canadagoosefemmehomme2016.fr/canada-goose-new-york-prix_159.html

www.canadagoosefemmehomme2016.fr/usine-canada-goose_85.html

www.canadagoosefemmehomme2016.fr/canada-goose-chilliwack-bomber-femme_458.html

www.canadagoosefemmehomme2016.fr/pantalon-canada-goose_315.html

www.canadagoosefemmehomme2016.fr/canada-goose-citadel_470.html

www.canadagoosefemmehomme2016.fr/canada-goose-rabais_88.html

www.canadagoosefemmehomme2016.fr/canada-goose-ou-parajumpers_414.html

www.canadagoosefemmehomme2016.fr/veste-style-canada-goose_223.html

www.canadagoosefemmehomme2016.fr/canada-goose-france-boutique_218.html

www.canadagoosefemmehomme2016.fr/canada-goose-chine_250.html

www.canadagoosefemmehomme2016.fr/canada-goose-manteau_438.html

www.canadagoosefemmehomme2016.fr/canada-goose-taille-xs_224.html

www.canadagoosefemmehomme2016.fr/canada-goose-magasin-paris_280.html

www.canadagoosefemmehomme2016.fr/veste-canada-goose-homme-pas-cher_199.html

www.canadagoosefemmehomme2016.fr/canada-goose-pas-cher_455.html

Comment by sguerra376 5 days ago

http://www.canadagoosefemmehomme2016.fr/expedition-parka-canada-goose_210.html

http://www.canadagoosefemmehomme2016.fr/chilliwack-canada-goose_485.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-hybridge_344.html

http://www.canadagoosefemmehomme2016.fr/blouson-canada-goose_156.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-sans-fourrure_311.html

http://www.canadagoosefemmehomme2016.fr/parka-canada-goose-pas-cher_358.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-summit_236.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-veste-femme_363.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-parka-montebello_317.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-lodge_76.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-chilliwack-bomber-femme_458.html

http://www.canadagoosefemmehomme2016.fr/usine-canada-goose_85.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-laval_347.html

http://www.canadagoosefemmehomme2016.fr/ontario-canada-goose_96.html

http://www.canadagoosefemmehomme2016.fr/survetement-canada-goose_356.html

http://www.canadagoosefemmehomme2016.fr/canada-gooser_220.html

http://www.canadagoosefemmehomme2016.fr/logo-canada-goose_138.html

http://www.canadagoosefemmehomme2016.fr/doudoune-canada-goose-femme_68.html

http://www.canadagoosefemmehomme2016.fr/homme-canada-goose_350.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-homme-noir_115.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-violette_121.html

http://www.canadagoosefemmehomme2016.fr/doudoune-style-canada-goose-femme_388.html

Comment by sguerra376 5 days ago

www.canadagoosefemmehomme2016.fr/parka-canada-goose-montebello_214.html

www.canadagoosefemmehomme2016.fr/canada-goose-aviateur_449.html

www.canadagoosefemmehomme2016.fr/femme-canadian-goose_104.html

www.canadagoosefemmehomme2016.fr/canada-goose-bomber-chilliwack_119.html

www.canadagoosefemmehomme2016.fr/la-canadienne-canada-goose_294.html

www.canadagoosefemmehomme2016.fr/magasin-canada-goose-a-paris_387.html

www.canadagoosefemmehomme2016.fr/canada-goose-langford_320.html

www.canadagoosefemmehomme2016.fr/canada-goose-hybridge-hoody_382.html

www.canadagoosefemmehomme2016.fr/boutique-canada-goose-france_117.html

www.canadagoosefemmehomme2016.fr/canada-goose-grenoble_340.html

www.canadagoosefemmehomme2016.fr/canada-goose-france-site-officiel_307.html

www.canadagoosefemmehomme2016.fr/canada-goose-occasion_413.html

www.canadagoosefemmehomme2016.fr/doudoune-canada-goose-d-occasion_466.html

www.canadagoosefemmehomme2016.fr/livigno-canada-goose_72.html

www.canadagoosefemmehomme2016.fr/canada-goose-payer-en-plusieurs-fois_152.html

www.canadagoosefemmehomme2016.fr/canada-goose-authentique_434.html

www.canadagoosefemmehomme2016.fr/canada-goose-new-york-prix_159.html

www.canadagoosefemmehomme2016.fr/canada-goose-blanche_295.html

www.canadagoosefemmehomme2016.fr/canada-goose-taille-s_327.html

www.canadagoosefemmehomme2016.fr/chilliwack-canada-goose_485.html

www.canadagoosefemmehomme2016.fr/canada-goose-promo_172.html

www.canadagoosefemmehomme2016.fr/canada-goose-rundle_453.html

www.canadagoosefemmehomme2016.fr/canada-goose-achat_221.html

www.canadagoosefemmehomme2016.fr/prix-canada-goose-new-york_215.html

www.canadagoosefemmehomme2016.fr/yukon-bomber-canada-goose_147.html

www.canadagoosefemmehomme2016.fr/canada-goose-chateau_300.html

www.canadagoosefemmehomme2016.fr/canada-goose-modele-victoria_409.html

Comment by sguerra376 3 days ago

http://www.canadagoosefemmehomme2016.fr/canada-goose-veste_126.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-whistler_318.html

http://www.canadagoosefemmehomme2016.fr/veste-style-canada-goose_223.html

http://www.canadagoosefemmehomme2016.fr/parka-canada-goose-prix_395.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-pour-b��b��_146.html

http://www.canadagoosefemmehomme2016.fr/acheter-une-canada-goose_177.html

http://www.canadagoosefemmehomme2016.fr/parka-canada-goose-homme-pas-cher_419.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-site-officiel_57.html

http://www.canadagoosefemmehomme2016.fr/manteau-goose-canada-femme_149.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-parka-chateau_427.html

http://www.canadagoosefemmehomme2016.fr/parka-femme-canada-goose_336.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-distributeur_365.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-marron_208.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-grise-homme_468.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-entrepot_141.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-femme-prix_231.html

http://www.canadagoosefemmehomme2016.fr/canada-triple-goose_260.html

http://www.canadagoosefemmehomme2016.fr/veste-canada-goose-homme-pas-cher_199.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-occasion-femme_282.html

http://www.canadagoosefemmehomme2016.fr/doudoune-canada-goose_330.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-freestyle_324.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-chilliwack-femme-occasion_464.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-stockholm_43.html

http://www.canadagoosefemmehomme2016.fr/heatherton-canada-goose_484.html

http://www.canadagoosefemmehomme2016.fr/goose-canada_169.html

http://www.canadagoosefemmehomme2016.fr/pantalon-canada-goose_315.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-boutique-en-ligne_184.html

Comment by sguerra376 3 days ago

http://www.canadagoosefemmehomme2016.fr/canada-goose-banff_129.html

http://www.canadagoosefemmehomme2016.fr/doudoune-canada-goose-montebello-femme_128.html

http://www.canadagoosefemmehomme2016.fr/macmillan-canada-goose_270.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-violette_121.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-sherbrooke_245.html

http://www.canadagoosefemmehomme2016.fr/prix-doudoune-canada-goose_428.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-chilliwack-femme_191.html

http://www.canadagoosefemmehomme2016.fr/mystique-canada-goose_343.html

http://www.canadagoosefemmehomme2016.fr/chaussure-canada-goose_230.html

http://www.canadagoosefemmehomme2016.fr/ecusson-canada-goose_168.html

http://www.canadagoosefemmehomme2016.fr/survetement-canada-goose_356.html

http://www.canadagoosefemmehomme2016.fr/shelburne-canada-goose_418.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-parka-montebello_317.html

http://www.canadagoosefemmehomme2016.fr/doudoune-femme-canada-goose-pas-cher_407.html

http://www.canadagoosefemmehomme2016.fr/vetement-goose-canada_345.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-site-officiel_57.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-doudoune-sans-manche_166.html

http://www.canadagoosefemmehomme2016.fr/veste-canada-goose-femme_274.html

http://www.canadagoosefemmehomme2016.fr/montebello-parka-canada-goose_287.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-solaris_107.html

Comment by sguerra376 2 days ago

www.canadagoosefemmehomme2016.fr/acheter-canada-goose_446.html

www.canadagoosefemmehomme2016.fr/canada-goose-pas-cher_455.html

www.canadagoosefemmehomme2016.fr/canada-goose-langford_320.html

www.canadagoosefemmehomme2016.fr/canada-goose-bomber-chilliwack_119.html

www.canadagoosefemmehomme2016.fr/canada-goose-longue-homme_301.html

www.canadagoosefemmehomme2016.fr/prix-d-une-canada-goose_130.html

www.canadagoosefemmehomme2016.fr/canada-goose-occasion-femme_282.html

www.canadagoosefemmehomme2016.fr/canada-goose-montebello-femme_373.html

www.canadagoosefemmehomme2016.fr/doudoune-femme-canada-goose_103.html

www.canadagoosefemmehomme2016.fr/canada-goose-noir-femme_346.html

www.canadagoosefemmehomme2016.fr/acheter-une-canada-goose_177.html

www.canadagoosefemmehomme2016.fr/citadel-parka-canada-goose_62.html

www.canadagoosefemmehomme2016.fr/casquette-canada-goose_134.html

www.canadagoosefemmehomme2016.fr/canada-goose-femme-victoria_285.html

www.canadagoosefemmehomme2016.fr/canada-goose-en-france_127.html

www.canadagoosefemmehomme2016.fr/ou-acheter-une-canada-goose_313.html

www.canadagoosefemmehomme2016.fr/canada-goose-femme-doudoune_101.html

www.canadagoosefemmehomme2016.fr/pas-cher-canadian-goose_219.html

www.canadagoosefemmehomme2016.fr/magasin-canada-goose-new-york_396.html

www.canadagoosefemmehomme2016.fr/ou-acheter-canada-goose_100.html

www.canadagoosefemmehomme2016.fr/femme-canadian-goose_104.html

www.canadagoosefemmehomme2016.fr/canada-goose-aviateur_449.html

www.canadagoosefemmehomme2016.fr/prix-d-une-doudoune-canada-goose_390.html

www.canadagoosefemmehomme2016.fr/canada-goose-distributeur_365.html

www.canadagoosefemmehomme2016.fr/canada-goose-boutique-en-ligne_184.html

www.canadagoosefemmehomme2016.fr/comment-reconnaitre-une-canada-goose_478.html

Comment by sguerra376 2 days ago

Your point of view

You must be signed in to comment.