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.

UpGuard checks and validates configurations for every major OS, network device, and cloud provider.
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

Revert all modified files in an SVN repo

Terminal - Revert all modified files in an SVN repo
svn status | grep "^M" | while read entry; do file=`echo $entry | awk '{print $2}'`; echo $file; svn revert $file; done
2012-06-17 16:01:06
User: wsams
Functions: awk echo grep read
0
Revert all modified files in an SVN repo

This command allows you to revert every modified file one-by-one in a while loop, but also after "echo $file;" you can do any sort of processing you might want to add before the revert happens.

Alternatives

There are 7 alternatives - vote for the best!

Terminal - Alternatives
svn st | grep -e '^M' | awk '{print $2}' | xargs svn revert
for file in `svn st | awk '{print $2}'`; do svn revert $file; done
svn revert .

Know a better way?

If you can do better, submit your command here.

What others think

...or instead of hacking things up with pipes and stuff you could simply use git:

git checkout -f master
Comment by noqqe 283 weeks and 3 days ago

Why do people forget that awk has it's own regex filtering capabilities? Anytime you see grep, awk, sed, perl, cut (and a few others) piping into each other, then it's likely able to be improved. In this case:

svn st | awk '/^M/ {print $2}' | xargs svn revert
Comment by wam 283 weeks and 2 days ago

I think both of your comments are nice, but we're not forgetting - we're just showing options here on cmdlnfu.

Comment by wsams 283 weeks and 1 day ago

Older versions of awk had some annoying limitations which may explain the habit of reaching for grep, cut, sed first.

According to 'The AWK Programming Language'

the limits of AWK are:

100 fields

3000 characters per input record

1024 characters per field

15 open files

1 pipe

Comment by zlemini 282 weeks and 4 days ago

won't "svn revert -R" work?

Comment by unixmonkey37567 280 weeks and 1 day ago

Oh that's pretty cool, sometimes I want to do work on all newly added files. Like add a license statement to the top and commit each, but not the entire working copy.

svn status | grep "^A" | while read entry; do file=`echo $entry | awk '{print $2}'`; echo $file; sed -i '1i MY LICENSE AUTHOR 2012' $file; svn commit $file -m "Adding $file"; done

Comment by liamecaps 280 weeks and 1 day ago

2016-6-7 leilei

"Tweed is an excellent fabric especially when you are living in place like London. London is known for its cold weather and in such climate, tweed works absolutely fine. One of the biggest advantages of buying a tweed suit is that you it can be worn all together or can be incorporated separately into pieces in your wardrobe. Tweed suits in London is quite famous amongst men. So let us understand, what exactly tweed fabric is.

What is Tweed?

Tweed is a warm rough to touch fabric and was originated in Scotland. The reason why tweed suits in London are famous is because of its loose weave which makes it flexible and comfortable during winters. The tweed fabric is referred to the weave of fabric; therefore when you see different kinds of tweed, it would tell you the pattern it has been woven. One of the most popular kinds of tweed is the herringbone tweed which a diagonally v-shaped black and white weave. The herringbone tweed gives a rich visual texture and known for its versatility.

Ways to wear Tweed in winters

Everybody needs to wear warm clothes during the winter month to protect from the chilly weather outside. However, many people think that they might have to compromise fashion during those chilly months. Not now! There are many fabrics that you can use to protect yourself from the weather as well as still enjoy great looks. Tweed is one of the fabrics that can make you awesome even in winters as well. Below are some ways of how you can incorporate tweed with other pieces in your wardrobe

"

http://www.raybanssunglasses.us.org

http://www.poloralphlaurenmen.name

http://www.burberrysale.me.uk

http://www.nike-airmax90.me.uk

http://www.ralph-lauren-pas-cher.fr

http://www.yeezyboost-350.us.com

http://www.jordan-femmepascher.fr

http://www.airmaxoutletsaleus.com

http://www.cheapmlbjerseys.us

http://www.adidas-shoes.me.uk

http://www.basketballshoes.net.co

http://christianlouboutin.eshopping.us.com

http://www.airmax90.org

http://www.cheapfakeoakleysoutlet.com

http://www.designerhandbags.net.co

http://www.airjordan-uk.org.uk

http://www.levisjeans.name

http://www.fitflopssaleclearance.net

http://www.pradaoutlet.name

http://www.yeezyboost350.me.uk

http://www.michael-korshandbagsoutlet.us.com

http://www.louisvuittonoutletonline.us.org

http://www.coachfactoryoutlet-online.com.co

http://www.hollisterclothingstore.com.co

http://www.abercrombieandfitchoutlet.name

http://www.rayban-outletstoreonline.com

http://canadagoose.shopgioia.com

http://www.ghdflatiron.com

http://www.christianlouboutinoutlet.us

http://www.kobeshoes.name

http://www.pandorajewelryoutlet.name

http://www.birkenstocks.name

http://www.longchampoutlet.net.co

http://www.truereligionjeans.me.uk

http://www.chaussure-louboutin.fr

http://www.coachfactoryoutletonline.us.org

http://www.louisvuittonoutlet.ca

http://www.adidasnmd.org.uk

http://www.tiffanyjewelryoutlet.name

http://www.michaelkorsoutletclearance.net.co

http://www.louboutin.eu.com

http://www.yeezyboost.us.com

http://www.thenorthfaceoutlet.com.co

http://www.montblancoutletpens.com

http://coach.eshopping.us.com

http://www.cheap-nbajerseys.us.com

http://www.thenorthface.org.uk

http://www.ralphlauren-outlet.com.co

http://ralphlauren.shopgioia.com

http://www.kate-spadeoutlet.com.co

http://www.adidasgazelle.me.uk

http://www.gucci-borse.it

http://www.tomsoutletstores.in.net

http://ugg.eshopping.us.com

http://oakley.shopgioia.com

http://www.raybans.org.uk

http://www.fitflops.in.net

http://www.cheapraybansunglassesoutlet.us.com

http://www.skechersshoes.us

http://www.supraforsale.in.net

http://www.buyredbottomcheapshoesonline.com

http://www.oakley-sunglasses.us.com

http://www.fitflopuk.me.uk

http://www.burberry-outlet-canada.ca

http://www.discountnikeshoessc.org

http://www.truereligionjeansoutlet.name

http://www.nfl-jerseys-wholesale.us.com

http://www.toryburchoutlet.org

http://www.cheapjordans-shoes.us.com

http://www.vansshoes.in.net

http://www.raybansunglassesoutlet.in.net

http://www.nikefreerun.name

http://www.adidas-nmd.us.com

http://www.fitflops.us

http://www.truereligionoutlet.com.co

http://www.asicsshoes.in.net

http://www.new-balanceoutlet.us

http://www.edhardy-outlet.name

http://www.toms.in.net

http://www.armani-exchange.us

http://www.michaelkors-outlet.us.org

http://www.birkenstocksandals.us.com

http://www.instylermax.in.net

http://www.michael-korsoutlet.ca

http://www.underarmourshoes.cc

http://www.puma-shoes.in.net

http://www.oakley--sunglasses.us.org

http://www.omegawatches.name

http://www.niketrainers.com.co

http://www.coachoutletstoreonlineclearances.in.net

http://www.nike-airmax.org.uk

http://www.tiffanyandco.name

http://www.adidas-trainers.me.uk

http://www.katespadehandbags.net.co

http://www.birkenstocksandals.org.uk

http://www.raybans.in.net

http://www.tiffanyandcojewelry.org.uk

http://www.nikestoreuk.me.uk

http://www.ralphlaurenoutletuk.me.uk

http://www.oakley.nom.co

http://www.polooutlet.us.com

http://burberry.eshopping.us.com

http://www.diorsunglasses.us

http://www.michaelkorsoutletvip.in.net

http://www.ralphlaurenoutlet.us.org

http://www.longchampbag.co.uk

http://www.eccoshoes.us

http://www.pandoracharmsuk.org.uk

http://www.edhardyukclothing.me.uk

http://www.nike-tn-pascher.fr

http://www.coachfactoryonlineoutlet.com.co

http://www.louisvuitton-sac-pascher.fr

http://burberry.shopgioia.com

http://www.michaelkorshandbagsuk.me.uk

http://www.lacosteshoes.us

http://www.coachpursesoutlet.in.net

http://www.louisvuittonfactoryoutlet.us.com

http://www.michaelkorspurses.in.net

http://www.adidassuperstar.co.uk

http://www.ferragamoshoes.cc

http://www.rayban--outlet.com

http://www.true-religionjeans.net.co

http://www.nike-blazerlow.fr

http://www.cheapoakleysunglassesoutlet.us.com

http://www.louisvuittonoutletonlines.us.com

http://www.coachoutletstoreonline.com.co

http://www.raybansunglassesdiscount.us.com

http://www.reebokclassic.me.uk

http://abercrombie.shopgioia.com

http://www.kate-spadeoutlet.in.net

http://www.bottegaveneta.in.net

http://www.oakleysunglassesuk.org.uk

http://www.kate-spadeoutlet.us

http://canadagoose.eshopping.us.com

http://www.prada-sunglasses.us.com

http://www.louisvuittonoutlets-lv.com

http://ralphlauren.eshopping.us.com

http://www.hollisterclothing.org

http://www.poloralphlaurenoutletonlines.us.com

http://www.saclongchamp-solde.fr

http://www.louisvuittonhandbagsuk.me.uk

http://christianlouboutin.shopgioia.com

http://www.michaelkorsoutletclearance.com.co

http://www.adadasstansmith.com

http://www.nikerosherunwomen.me.uk

http://www.guccihandbagsoutlet.org

http://www.airmax95.org.uk

http://www.versace-sunglasses.us.com

http://www.versaceshoes.in.net

http://www.sac-longchamppliage.fr

http://www.michaelkorswatches.co.uk

http://www.michaelkors-outlet.ca

http://www.runningshoes.com.co

http://www.michaelkorsoutletonline.com.co

http://www.poloralphlauren.net.co

http://www.coach-outletonline.us.org

http://www.rolex-replicawatches.com.co

http://www.christianlouboutinuk.me.uk

http://www.pandorajewelryoutlet.org

http://www.nikefreeruns.uk

http://www.rolexwatchesuk.me.uk

http://www.nikefreeflyknit.name

http://www.adidasnmd.us.org

http://www.michaelkorsoutlet.net.co

http://www.mizunorunningshoes.in.net

http://www.michaelkorsoutletonlineclearance.us.com

http://www.cheapjordans.com.co

http://rayban.shopgioia.com

http://www.michael-kors-outlet.ca

http://www.michaelkorsoutlet-online.us.org

http://rayban.eshopping.us.com

http://www.katespadehandbags.org.uk

http://www.hollistersaleuk.me.uk

http://www.conversetrainer.co.uk

http://www.adadassupercolor.com

http://oakley.eshopping.us.com

http://www.fitflopssaleclearance.com

http://www.babylisspro.in.net

http://www.hermesbelt.in.net

http://www.cartierwatches.cc

http://www.timberlandbootsoutlet.name

http://www.pandoracharms.com.co

http://www.christianlouboutinshoes.org.uk

http://www.nikehuarache.com.co

http://www.jimmychoo.in.net

http://www.reebokshoes.in.net

http://www.discountoakleysunglasses.us.org

http://www.nikecortez.com.co

http://www.raybans.us.com

http://www.michaelkorshandbagsoutlet.in.net

http://www.hollisteruksale.org.uk

http://www.coach-outletonline.eu.com

http://www.louisvuitton-borse.it

http://www.stephencurryshoes.net

http://michaelkors.eshopping.us.com

http://www.cheap-jordans.us

http://www.coachfactoryoutletstoreonline.com

http://www.adidaspureboost.us

http://www.tomsshoes.us.com

http://www.airforce1-nike.fr

http://www.lebronjamesshoes.org

http://ugg.shopgioia.com

http://www.cheap-jerseyswholesale.us

http://www.chaussurelouboutin-pascher.fr

http://www.michaelkors-outlet.us.com

http://www.converseshoes.in.net

http://www.nikeairforce1.org.uk

http://www.coach-outletonlines.us.com

http://www.rolexdaytona.in.net

http://www.hermesuk.org.uk

http://www.nikefreeflyknit.org.uk

http://www.timberlandbootsuk.org.uk

http://hollister.shopgioia.com

http://www.adadassuperstar.com

http://www.sunglassesoakley.in.net

http://www.cheapnhljerseyswholesale.us

http://www.valentino.in.net

http://www.chiflatiron.in.net

"Casually ? if you are a starter with tweed then it is recommended to start with plain variety of tweed. You can wear a tweed jacket with dark blue jeans and high boots. Incorporate a neutral t-shirt or a winter shirt under the jacket.

At work ? Tweed suit in London are quite popular as one of the formal attires. Heavy woven tweeds can make you look older, so try buying tweed suits in London that are finely weaved and pair it with your regular shirts like white or blue with smart formal shoes. Believe it or not, it can win you praise at work.

Accessorise ? Apart from wearing tweed suits in London as attire you can even use accessories made out of tweed. Tweed caps, laptop bags, scarves, gloves are a smart way to incorporate tweed in your winter collection. It is also a safe way of using tweed fabric if you are not too comfortable wearing it. There is even footwear that has tweed as their centre fabric and looks awesome.

Taking care of Tweed

Though the fabric boasts itself about being tough and rugged, it still requires a good care to use it for coming years as well. Due to its weave structure it often pick up dirt and stains that can get hard to remove. Make sure you take your tweed clothes for dry cleaning as washing them in washing machines can make them shrink. Also, keep them in cool dry place so that they do not get attracted by moths.

"

Comment by leilei3915 76 weeks and 2 days ago

I'm Dr. Maria. Thank you for publishing http://onlineconsulta.com consulta en linea http://elpsicologoonline.com psicologo en linea http://unmedicoonline.com medico en linea http://unabogadoonline.com abogado en linea http://eldoctoronline.com doctor en linea http://unpsiquiatraonline.com psiquiatra en linea http://midermatologoonline.com dermatologo en linea http://miginecologoonline.com ginecologo en linea http://miveterinarioonline.com veterinario en linea http://elpediatraonline.com pediatra en linea http://losabogadosonline.es abogado en linea http://abogadosespa?a.com abogado espa?a en linea http://abogadoscolombiaonline.com abogado colombia en linea http://abogadosmexicoonline.com abogado mexico en linea

https://www.facebook.com/Medico-Online-Gratis-Chat-en-linea-Consulta-por-internet-Pregunta-358934714211779/" rel=" follow">medico en linea https://www.facebook.com/Doctor-Online-Gratis-Chat-en-linea-Consulta-por-internet-Pregunta-522622041154933/" rel=" follow">doctor en linea https://www.facebook.com/Psicologo-Online-Gratis-Chat-En-Linea-Consulta-Por-internet-259773220825914 psic?logo en linea https://www.facebook.com/Veterinario-Online-Chat-Veterinaria-En-linea-Consulta-Por-Internet-Gratis-371727646274640 veterinario en linea https://www.facebook.com/Abogado-Online-Gratis-Chat-en-linea-Consulta-por-internet-141244409389002 abogado en linea https://www.facebook.com/Abogado-Espa?a-Online-Gratis-Chat-Consulta-en-Internet-Spain-Lawyer-362514550533433 abogado Espa?a en linea https://www.facebook.com/Abogado-Chile-Online-Gratis-Chat-En-linea-Consulta-Por-Internet-228066614002008 abogado chile en linea https://www.facebook.com/Abogado-Costa-Rica-Online-Gratis-Chat-En-linea-Consulta-Por-Internet-429337820491117 abogado costa rica en linea https://www.facebook.com/Psiquiatra-online-psiquiatria-en-linea-por-internet-consulta-pregunta-chat-565522200163808 psiquiatra en linea https://www.facebook.com/Mecanico-online-mecanica-en-linea-por-internet-consulta-pregunta-chat-174006862749906 mecanico en linea https://www.facebook.com/Dentista-Online-Consulta-Odontologia-En-Linea-Dentist-Ask-Asnwer-Dentistry-120643201459073 dentista en linea https://www.facebook.com/Urologo-online-Consulta-Urologia-en-linea-En-internet-Ask-Urologist-Answer-1069950459748749 urologo en linea https://www.facebook.com/Ginecologo-online-Consulta-Ginecologia-en-linea-Ask-Gynecologist-Answer-419690454868104 ginecologo en linea https://www.facebook.com/Pediatra-online-Gratis-Consulta-Pediatria-en-linea-Ask-pediatrician-Asnwer-1379079922316977 pediatra en linea https://www.facebook.com/Dermatologo-Online-Gratis-Consulta-Dermatologia-por-internet-Dermatologist-219794978378043 dermatologo en linea https://www.facebook.com/Abogado-Mexico-Online-Gratis-Leyes-En-linea-Consulta-Derecho-en-Internet-435877176499555 abogado en linea https://www.facebook.com/Abogado-Argentina-Online-Gratis-Leyes-En-linea-Consulta-Derecho-en-Internet-236674043124574 abogado en linea https://www.facebook.com/Abogado-Estados-Unidos-USA-Online-Gratis-Leyes-En-linea-Consulta-Derecho-488341701233126 abogado en linea https://www.facebook.com/Abogado-Chile-Online-Gratis-Leyes-En-linea-Consulta-Derecho-Por-Internet-228066614002008 abogado en linea https://www.facebook.com/Abogado-Ecuador-Online-Gratis-Leyes-En-linea-Consulta-Derecho-Por-Internet-438078622947415 abogado en linea http://consultaespecialistas.blogspot.com consulta en linea

Comment by maria30 30 weeks and 4 days ago

http://www.airvapormaxflyknit.com/ Air Vapormax Flyknit

http://www.airvapormaxflyknit.com/womens-nike-air-max-2016.html Womens Nike Air Max 2016

http://www.airvapormaxflyknit.com/womens-nike-air-max-2017.html Womens Nike Air Max 2017

http://www.airvapormaxflyknit.com/womens-nike-air-max-90.html Womens Nike Air Max 90

http://www.airvapormaxflyknit.com/womens-nike-air-vapormax.html Womens Nike Air Vapormax

http://www.airvapormaxflyknit.com/womens-nike-air-max-flyknit.html Womens Nike Air Max Flyknit

http://www.airvapormaxflyknit.com/womens-nike-air-max-tn.html Womens Nike Air Max TN

http://www.airvapormaxflyknit.com/mens-nike-air-max-flyknit.html Mens Nike Air Max Flyknit

http://www.airvapormaxflyknit.com/mens-nike-air-max-lunar-90.html Mens Nike Air Max Lunar 90

http://www.airvapormaxflyknit.com/mens-nike-air-max-tn.html Mens Nike Air Max TN

http://www.airvapormaxflyknit.com/mens-nike-air-vapormax.html Mens Nike Air Vapormax

http://www.airvapormaxflyknit.com/mens-nike-air-max-2016.html Mens Nike Air Max 2016

http://www.airvapormaxflyknit.com/mens-nike-air-max-2017.html Mens Nike Air Max 2017

http://www.alabamaproshop.com/ University of Alabama Jerseys

http://www.alabamaproshop.com/julio-jones-alabama-jersey.html Julio Jones Alabama Jersey

http://www.alabamaproshop.com/amari-cooper-alabama-jersey.html Amari Cooper Alabama Jersey

http://www.alabamaproshop.com/mark-ingram-alabama-jersey.html Mark Ingram Alabama Jersey

http://www.alabamaproshop.com/aj-mccarron-alabama-jersey.html AJ McCarron Alabama Jersey

http://www.alabamaproshop.com/jalen-hurts-alabama-jersey.html Jalen Hurts Alabama Jersey

http://www.alabamaproshop.com/o-j-howard-alabama-jersey.html O.J. Howard Alabama Jersey

http://www.alabamaproshop.com/minkah-fitzpatrick-alabama-jersey.html Minkah Fitzpatrick Alabama Jersey

http://www.alabamaproshop.com/jonathan-allen-alabama-jersey.html Jonathan Allen Alabama Jersey

Comment by huang1 18 weeks and 1 day ago

Your point of view

You must be signed in to comment.