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

Extract all 7zip files in current directory taking filename spaces into account

Terminal - Extract all 7zip files in current directory taking filename spaces into account
for file in *.7z; do 7zr e "$file"; done
2010-01-22 18:42:20
User: jmcantrell
Functions: file
3
Extract all 7zip files in current directory taking filename spaces into account

Alternatives

There is 1 alternative - vote for the best!

Terminal - Alternatives
find -maxdepth 1 -type f -name "*.7z" -exec 7zr e '{}' ';'
2010-01-23 19:50:10
User: minnmass
Functions: find
-1

Use find's built-in ability to call programs.

Alternatively,

find -maxdepth 1 -type f -name "*.7z" -print0 | xargx -0 -n 1 7zr e

would work, too.

7za x \*.zip
savesIFS=$IFS;IFS=$(echo -en "\n\b"); for items in `ls *.7z`; do 7zr e $items ; done; IFS=$saveIFS

Know a better way?

If you can do better, submit your command here.

What others think

for is a bah idea for executing commands on multiple files if one of more contain space in filename.

Comment by pepin 365 weeks and 2 days ago

You're wrong. My command properly handles filenames with spaces.

Comment by jmcantrell 365 weeks and 2 days ago

These alternative commands are so amazingly pointless and stupid that I'm not surprised that mine got downvoted.

Comment by jmcantrell 365 weeks and 2 days ago

What jmcantrell failed to mention is that his version properly handles filenames with spaces due to the use of quotes around $file. I'm pretty sure that's the reason that pepin missed...

Comment by bwoodacre 365 weeks and 2 days ago

You should know can acquire the very same specific timepieces on the internet using a secure shopping cart as you can get with the tasteful retail add-ons retail outlet within the shopping center?Rosie Huntington-Whiteley used the black and chartreuse fallen abandon print out strapless dress and harness using dark-colored Monroe motorola clutch almost all from your Wall plug Pre-fall The year 2013 Variety.Additionally range from You.Utes., Instructor, the Upper U . s . industry, yet likewise their attraction. 2013 monetary calendar year finishing 12 , 30, Next year, uncovered within Jan this coming year, Train, nevertheless it isn't able: Q2 every 3 months earnings climbed Four percent in order to $ 1.A few million, One dollar.Some zillion under the market awaited.When an individual take care of any risks that you just maybe lose that, and then you can feel really distressed relating to this. as a way a person obtain prepared you'll absolutely always drop a number of possibility which may get to your silver. Whilst for I am concerned, the Purses and handbags executes sale made, could you basically keep underneath and also do avoid anything at all and simply ignore it.Garments internet marketer The nike jordan KORS (KORS) provides in fact received your equine -- a new particularly gratifying business with a trendy brand. Still personal shareholders in fact really should ponder regarding normally the administration collection.Originally start using their own clothes brand, he / she before long ended up being a name in order to consider inside the type market. A lot of the major retail http://www.hermesbeltsbirkinkellybag.co.uk/ outfits retailers around the globe beginning filling his / her clothes range for females and therefore the charm enhanced. Women all over the planet liked the tactic the apparel would go with their own body in addition to swiftly this individual increased a lover base which included several of the largest celebrities around the world.Think with regards to the Hamilton Bag. A wonderful bag along with top quality household leather and also around in a variety of shades which includes brownish, graphite, vanilla and glossy synthetic leather. The particular tied bands undoubtedly are a fantastic pointer coming from handbags and also the band flat put in the top aspect of the take can be an familiar reminder from the Hermes Birkin bag. Humble, highly processed tips with the well-known designers in addition to their creations.Now, what exactly you might need will be catch this kind of modern entire world, and opt for the style bags. Scientific disciplines and also modern tools furthermore perform an essential perform within our socialist making. Out of the box so important, you may need this Carriers to disclose ones modern-day style trend. And you'll certainly lack of feeling being i'm sorry regarding to obtain the idea, simply because can be neural time for the design and style time. Usually do not hang on nowadays.

Comment by stephanieg915 1 week ago

The other watch, MK's Mid-Size Tribeca Wrist watch Observe, Espresso/White Horn, is likewise bound to create a model report. This rounded illustration is usually a espresso metal and also bright horn acetate that's interesting inside sculpt and also color. The face activities some sort of bronze clock facts using likewise Persia figures and also twice baton tagging pencils showing your unusual a long time. It includes any centered halt enjoy capacity as well as tiny morning window at the Six o-clock placement. This complementing bracelets strap solely contributes to the nice thing about this specific timepiece.The almost all exceptional element of receiving original DKNY watches is the ensure of their quality. Extravagance wrist watches are made to avoid frequent degeneration beyond day-to-day responsibilities. They may be designed to experience distinct chemical substances, drinks just like sea water, in addition to unsafe materials including chemical substance and in many cases permanent magnetic sectors. Getting manufactured wristwatches would certainly set you back a lot more rather than keeping right up since you would probably ought to purchase an extra enjoy to vary the damaged phony observe. If you would like obtain legitimate watches in a small price, there are lots of locations provide authentic top quality watches and check regarding lessened or even discounted goods.Balenciaga's elegant handbags are the ideal accent virtually any outfit, laid-back or perhaps classy. Just about any girl that posesses a Balenciaga bag is proper out seen having covet simply by almost every other young lady who may just dream of with pride owning a particular of the gorgeous designs.Likewise, an advanced do not lik is the absolute necessary friend of a voguish girl things like Victoria Beckham on the web. Currently, go bits are not just required apparel bits for ladies to make use of and safeguard their brains and also locks by extreme cold, still they have truly become upper-class extras, that may promptly include in virtually any visual appeal and aid you get noticed inside crowd. His or her relevance increases specially in the winter months, should there be always snow as well as horrible the weather. Developers from the coming freezing interval give a range of forms and goods, between which every girl will look from precisely what is most suitable in order to the woman model.Ensure you improve your car insurance policies insurance cover Outlet Store in cases where you move. And if a person merely changing a few km's aside, increase the risk for adjustments. You may not including every little thing you see, although, since minute rates are proven in essence place program code. In a single suv location it could possibly occasionally be superior because the genuinely thieves along with traumas price is additional high priced.Carry bags are a handful of essentially the most flexible bags about. Your Handbags family members are not necessarily protected from in which summary. This Carriers Clair Bag has gone out decide on for your fall months. The spectacular facet of carry bags is all the application form they might be put to use intended for. Just one may well stow apart some job file directories, their particular Apple macbook or a http://www.hermesbeltsbirkinkellybag.co.uk/ jacket with the chillier night time. They offer a more fashionable technique to transporting your laptop or computer close to then your essential laptop bags sold at individuals important laptop or computer retailers.If you're a product owner, acquire custom made bags from wholesale car dealerships. A lot of of these are around every corner on the web but you could plan to purchase them from your actual electric outlet. This is the superior suggestion, for those that might need to inspect the bags just before investing in attain these.Now this stock will be setting up a nice-looking platform. The habit for that frequent graph and or chart offers a tight appearance as soon as evaluated along with past basics, which is wonderful. Several of generally this along weeks by means of going up the variety * featuring several weeks concluded Walk 15 in addition to Annual percentage rates 5 various - genuinely explain institutional build-up an outcome with the large closes.

Comment by stephanieg915 6 days ago

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

http://www.canadagoosefemmehomme2016.fr/canada-goose-pas-cher-france_142.html

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

http://www.canadagoosefemmehomme2016.fr/snow-mantra-canada-goose_155.html

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

http://www.canadagoosefemmehomme2016.fr/canada-goose-chateau-homme_296.html

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

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

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

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

http://www.canadagoosefemmehomme2016.fr/vetements-canada-goose_64.html

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

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

http://www.canadagoosefemmehomme2016.fr/bonnet-canada-goose_289.html

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

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

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

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

http://www.canadagoosefemmehomme2016.fr/manteau-canada-goose-homme-pas-cher_341.html

http://www.canadagoosefemmehomme2016.fr/heli-arctic-canada-goose_441.html

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

http://www.canadagoosefemmehomme2016.fr/vrai-canada-goose-pas-cher_40.html

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

http://www.canadagoosefemmehomme2016.fr/canada-goose-outlet-france_122.html

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

Comment by sguerra376 4 days ago

www.canadagoosefemmehomme2016.fr/veste-canada-goose-femme-pas-chere_357.html

www.canadagoosefemmehomme2016.fr/veste-canada-goose-homme_474.html

www.canadagoosefemmehomme2016.fr/vetement-canada-goose_368.html

www.canadagoosefemmehomme2016.fr/veste-canada-goose-femmes_189.html

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

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

www.canadagoosefemmehomme2016.fr/canada-goose-borden-bomber_196.html

www.canadagoosefemmehomme2016.fr/doudoune-canada-goose-france_265.html

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

www.canadagoosefemmehomme2016.fr/canada-goose-bleu-electrique_187.html

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

www.canadagoosefemmehomme2016.fr/fourrure-canada-goose_70.html

www.canadagoosefemmehomme2016.fr/manteau-hiver-canada-goose_480.html

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

www.canadagoosefemmehomme2016.fr/rideau-canada-goose_303.html

www.canadagoosefemmehomme2016.fr/marque-doudoune-canada-goose_74.html

www.canadagoosefemmehomme2016.fr/canada-goose-outlet-france_122.html

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

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

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

www.canadagoosefemmehomme2016.fr/chilliwack-bomber-canada-goose_372.html

www.canadagoosefemmehomme2016.fr/vente-doudoune-canada-goose-femme_197.html

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

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

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

www.canadagoosefemmehomme2016.fr/canada-goose-victoria-pas-cher_211.html

Comment by sguerra376 4 days ago

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

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

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

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

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

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

www.canadagoosefemmehomme2016.fr/manteau-canada-goose-femme-prix_422.html

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

www.canadagoosefemmehomme2016.fr/canada-goose-chateau-noir_174.html

www.canadagoosefemmehomme2016.fr/canada-goose-toronto-outlet_483.html

www.canadagoosefemmehomme2016.fr/homme-canadian-goose_180.html

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

www.canadagoosefemmehomme2016.fr/prix-canada-goose-canada_416.html

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

www.canadagoosefemmehomme2016.fr/taille-canada-goose_79.html

www.canadagoosefemmehomme2016.fr/canada-goose-snow-mantra-parka_479.html

www.canadagoosefemmehomme2016.fr/vente-de-canada-goose_361.html

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

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

www.canadagoosefemmehomme2016.fr/constable-parka-canada-goose_97.html

www.canadagoosefemmehomme2016.fr/canada-goose-femme-bleu-marine_151.html

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

www.canadagoosefemmehomme2016.fr/canada-goose-chateau-homme_296.html

www.canadagoosefemmehomme2016.fr/goose-canada_169.html

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

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

Comment by sguerra376 3 days ago

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

http://www.canadagoosefemmehomme2016.fr/canada-goose-solaris-parka_375.html

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

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

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

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

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

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

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

http://www.canadagoosefemmehomme2016.fr/canada-goose-point-de-vente_371.html

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

http://www.canadagoosefemmehomme2016.fr/doudoune-canadian-goose_205.html

http://www.canadagoosefemmehomme2016.fr/kensington-canada-goose_234.html

http://www.canadagoosefemmehomme2016.fr/acheter-canada-goose-montreal_351.html

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

http://www.canadagoosefemmehomme2016.fr/ou-acheter-canada-goose-en-france_308.html

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

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

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

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

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

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

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

http://www.canadagoosefemmehomme2016.fr/ou-trouver-canada-goose_232.html

http://www.canadagoosefemmehomme2016.fr/site-officiel-canada-goose_432.html

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

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

Comment by sguerra376 3 days ago

http://www.canadagoosefemmehomme2016.fr/le-bon-coin-canada-goose_157.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-paris-magasin_420.html

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

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

http://www.canadagoosefemmehomme2016.fr/canada-goose-promotion-france_98.html

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

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

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

http://www.canadagoosefemmehomme2016.fr/canada-goose-fourrure-coyote_244.html

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

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

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

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

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

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

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

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

http://www.canadagoosefemmehomme2016.fr/gilet-canada-goose_185.html

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

http://www.canadagoosefemmehomme2016.fr/kensington-parka-canada-goose_257.html

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

Comment by sguerra376 2 days ago

http://www.canadagoosefemmehomme2016.fr/veste-de-ski-canada-goose_162.html

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

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

http://www.canadagoosefemmehomme2016.fr/vente-de-canada-goose_361.html

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

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

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

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

http://www.canadagoosefemmehomme2016.fr/canada-goose-pas-cher-homme_161.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-victoria-pas-cher_211.html

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

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

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

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

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

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

http://www.canadagoosefemmehomme2016.fr/rideau-canada-goose_303.html

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

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

http://www.canadagoosefemmehomme2016.fr/point-de-vente-canada-goose_304.html

http://www.canadagoosefemmehomme2016.fr/

Comment by sguerra376 2 days ago

Your point of view

You must be signed in to comment.