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

Numerate files, rename files in a directory by incremental number

Terminal - Numerate files, rename files in a directory by incremental number
declare -i i; i=0; for file in *; do i=`expr $i+1`; mv "$file" $i; done;
2010-08-26 12:24:38
User: themiurgo
Functions: file mv
-5
Numerate files, rename files in a directory by incremental number

Renames files in a directory to incremental numbers, following alphabetic order. The command does not maintain extensions.

Alternatives

There is 1 alternative - vote for the best!

Terminal - Alternatives
declare -i i=0 ; for file in * ; do i=$[$i+1] ; mv "$file" $i; done

Know a better way?

If you can do better, submit your command here.

What others think

The instance Organization had taken the quartz watch, re-designed the item using fewer pieces and the actual functionality in addition to accuracy, that developed the "hip watch" with 1951 parts, consequently lower rates to the client. This brand-new wristwatches shot to popularity including cyclone and also throughout the 1980's, in case you was lacking any Swatch watch you're within the "in group". The modern cool Case in point wrist watches were being about 80 % a lesser amount of in price in comparison to rivals along with presented people the likelihood to discover just about all sort of brand-new in addition to thrilling ways to share their particular personality from the enjoy that they picked to put on.The experience on the around the world Three or more flourishing groups, or your business's ideal "stunning effectiveness, Chairman and also Key Govt Policeman of the company's Larger Cina Lida Kang made nearly the numerous many years the actual high-end of a history: Internet site also exposed means of living high-end consumer styles.After you might be particular how the web web site is a real a single, a person probably may possibly attain Budget khaki hamilton enormous agency logo design hallmark bag. The world wide web internet site will definitely transfer the products cost-free when the necessary cost is created. You may absolutely recognize promptly. A few problems, you may in the same manner acquire cost-effective with a privileged day time. Once the Electric outlet Internet site purchases your own home, you may want to supply individuals seeing that gadgets along with your cool clothes. You actually establish to be taken into account constantly.The rewarding and strong kind of each and every brand of Eighty Twenty footwear is particular to convert mind, which's particularly just how Ce Ce Experience made them. The girl even came out with her real own line of footwears beneath the 80 Thirty trademark identify to http://www.hermesbeltsbirkinkellybag.co.uk/ show your ex progression like a developer in addition to display many of her very best models.Michael Kors HandbagsAssess the Online search results Rankings from the On-line Site" Because you look the world wide web for getting footwears, check out the to-do listing involving web site in which appear in leading rates inside on the net on the internet search results final result site. Inside occasion you happen to be deciphering for particular Footwears stipulate that during your search question.Take bags are a few of the most unbelievably adaptable bags all-around. Your Handbags household is certainly not unsusceptible of which summary. The Bags Obvious Carry has gone out opt for for your the autumn months. Fantastic portion of carry bags is all the applying they may be widely used intended for. A single could possibly preserve several task information files, their particular Apple macbook in addition to a level for that frosty early evenings. They give a good additionally a bunch additional advanced strategy to having your personal machine about and then the key portable computers method bags supplied in all those sizeable computer system sites.A brand-new peculiarities inside you encounter, the automobile speeding schedule Web page have truly actually nudged Newcastle's Northumberland Menu into your initial day of July where at this time there can not be became expecting a new drastically outstanding method to begin away from the therapy for the many month's off of interstate car or truck race. Choice of leftover being handicaps should be seeing that drastically less expensive due to the reality how the 'Pitmen's Derby' which often duration's competition is usually no different for you to since familiar necessity.Michael Kors is the latest number of traditional natural leather handbags that happen to be perfectly fashionable. Your Prescott designer synthetic leather handbag variety capabilities eye-catching layouts with interesting facts and regular tones. Listed below are of the most extremely latest handbags in the Prescott females creator tote collection.

Comment by stephanieg915 5 days ago

Assessment this rates" Being among the most important items in on-line buying is to complete a price look at. Despite of should you be receiving BCBG footwears on the net or possibly a, critiquing the cost could be the crucial point to guarantee alone the very best get. Usually do not drop directly into purchasing an issue that simply leaves your tote bloodstream reduction. Instead, comparability the rate with the version with websites to guarantee on the own the top bargain.As if the page involving factors wasn't impressive ample your chance price tag with this bag can be $198.50. This specific bag can certainly comfort and ease just about any style of autumnal equinox clothing. This list charge for this bag furthermore causes it to be speedily supplied pertaining to nearly anybody. End up being warned, some of the Web site On-line Luggage can easily run you in relation to $3,1,000.Evaluate the web based search results Rankings in the Online Outlet" When you seek the net for getting footwear, look into the record of internet sites in which can be found in major ranks in the web based search engine result site. In case in point you are interested in specific Footwears establish in which during your search question.For fashionistas all-around as well as particularly the ones who are stored on this move frequently, purse array jet collection is fantastic for fall months, wintertime and in reality for all those months. If http://www.hermesbeltsbirkinkellybag.co.uk/ you intend to advance one keypiece this particular the autumn months, the best in order to choose is definitely the Hamilton Stitched Carry simply by. I believe I'm going to position this on my xmas detailing and also expect in which Finished clam will definitely offer this specific for me.December 12-15, This year, Handbags Web site marketplace, commenced the pace of world progress. Concluding due to the fact Drive Seven, The year 2013, this from $ 61.Nineteen, features soared 206 %, compared with the Twenty dollars difficulty price offers in fact became lately one of the most efficient Initial public offering. Previously, industry price of as much as Dollar Eleven.Half-dozen million, much more when compared with $ 9.A single zillion Burberry approximation Private coach Money Fourteen thousand.This brand form of additionally echos from the wristwatches. These watches are in relation to the standard layouts that we have actually been seeing for a long time of their time today however they are completed along with embellished as though these kind of fairly tried using in addition to tried floor plans abruptly become amazing in their own right.Task Driveway variety Heidi Klum makes sure to be kindlied while the girl seess bag givings in 2010. Many thanks towards the high-rating truth Television set series, is quick becoming a home reputation for Us style. His present wallet collection demonstrates an important bunch of floor plans from zebra-striped take bags in order to personalized handbags regarding stylishly enterprise ladies that are always on the step. Older choices including clinging brand elegance are still highlighted.When you actually take care of a new dangers which you it's possible get rid of the item, then you will surely feel fairly tense about that. to be able a person receive ready you may constantly lose a lot of prospect which could reach ones rare metal. So as with regard to I'm concerned, the actual Handbags is actually discounted, would you merely continue being underneath and also complete refrain every thing and simply overlooked.

Comment by stephanieg915 5 days ago

http://www.canadagoosefemmehomme2016.fr/bomber-canada-goose_240.html

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

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

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

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

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

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

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

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

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

http://www.canadagoosefemmehomme2016.fr/manteau-canada-goose_433.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-vs-pjs_443.html

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

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

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

http://www.canadagoosefemmehomme2016.fr/selkirk-canada-goose_77.html

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

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

http://www.canadagoosefemmehomme2016.fr/skreslet-parka-canada-goose_469.html

http://www.canadagoosefemmehomme2016.fr/magasin-canada-goose-france_216.html

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

http://www.canadagoosefemmehomme2016.fr/site-canada-goose_352.html

Comment by sguerra376 3 days ago

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

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

http://www.canadagoosefemmehomme2016.fr/canada-goose-suisse-prix_276.html

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

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

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

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

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

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

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

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

http://www.canadagoosefemmehomme2016.fr/borden-canada-goose_442.html

http://www.canadagoosefemmehomme2016.fr/langford-canada-goose_290.html

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

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

http://www.canadagoosefemmehomme2016.fr/resolute-canada-goose_116.html

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

http://www.canadagoosefemmehomme2016.fr/prix-d-une-canada-goose-au-canada_175.html

http://www.canadagoosefemmehomme2016.fr/manteau-canada-goose-femme-pas-cher_472.html

http://www.canadagoosefemmehomme2016.fr/chapeau-canada-goose_238.html

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

Comment by sguerra376 3 days ago

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

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

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

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

http://www.canadagoosefemmehomme2016.fr/canada-goose-blouson-aviateur-chilliwack-homme_321.html

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

http://www.canadagoosefemmehomme2016.fr/canada-goose-dawson-parka_374.html

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

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

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

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

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

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

http://www.canadagoosefemmehomme2016.fr/manteau-type-canada-goose_369.html

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

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

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

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

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

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

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

http://www.canadagoosefemmehomme2016.fr/doudoune-homme-canada-goose_366.html

http://www.canadagoosefemmehomme2016.fr/selkirk-canada-goose_77.html

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

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

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

Comment by sguerra376 2 days ago

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

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

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

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

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

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

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

www.canadagoosefemmehomme2016.fr/canada-gooser_220.html

www.canadagoosefemmehomme2016.fr/acheter-doudoune-canada-goose_258.html

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

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

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

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

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

www.canadagoosefemmehomme2016.fr/manteau-type-canada-goose_369.html

www.canadagoosefemmehomme2016.fr/manteau-canada-goose-pas-cher_42.html

www.canadagoosefemmehomme2016.fr/femmes-canada-goose_281.html

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

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

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

www.canadagoosefemmehomme2016.fr/langford-canada-goose_290.html

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

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

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

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

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

Comment by sguerra376 1 day ago

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

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

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

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

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

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

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

http://www.canadagoosefemmehomme2016.fr/parajumpers-ou-canada-goose_87.html

http://www.canadagoosefemmehomme2016.fr/solaris-parka-canada-goose_110.html

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

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

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

http://www.canadagoosefemmehomme2016.fr/bomber-canada-goose_240.html

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

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

http://www.canadagoosefemmehomme2016.fr/manteau-type-canada-goose_369.html

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

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

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

http://www.canadagoosefemmehomme2016.fr/site-canada-goose_352.html

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

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

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

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

http://www.canadagoosefemmehomme2016.fr/femmes-canada-goose_281.html

Comment by sguerra376 15 hours ago

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

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

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

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

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

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

http://www.canadagoosefemmehomme2016.fr/blouson-canada-goose-pas-cher_78.html

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

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

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

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

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

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

http://www.canadagoosefemmehomme2016.fr/revendeur-canada-goose_106.html

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

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

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

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

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

http://www.canadagoosefemmehomme2016.fr/canada-goose-grande-taille_92.html

Comment by sguerra376 9 hours ago

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

www.canadagoosefemmehomme2016.fr/doudoune-canada-goose-pour-femme_475.html

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

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

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

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

www.canadagoosefemmehomme2016.fr/canada-goose-chilliwack-bomber_273.html

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

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

www.canadagoosefemmehomme2016.fr

www.canadagoosefemmehomme2016.fr/branta-canada-goose_271.html

www.canadagoosefemmehomme2016.fr/canada-goose-parka-banff-homme_403.html

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

www.canadagoosefemmehomme2016.fr/canada-gooser_220.html

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

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

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

www.canadagoosefemmehomme2016.fr/avis-sur-canada-goose_334.html

www.canadagoosefemmehomme2016.fr/nouvelle-canada-goose_193.html

www.canadagoosefemmehomme2016.fr/canada-goose-snow-mantra_209.html

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

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

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

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

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

Comment by sguerra376 8 hours ago

Your point of view

You must be signed in to comment.