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

dos2unix recursively

Terminal - dos2unix recursively
find . -type f -exec dos2unix {} +
2009-08-28 08:44:11
User: pavanlimo
Functions: find
0
dos2unix recursively

Alternatives

There are 3 alternatives - vote for the best!

Terminal - Alternatives

Know a better way?

If you can do better, submit your command here.

What others think

You haven't specified a result file, so should use:

find . -type f -exec dos2unix {} {} \;

Also this command assumes that you only have text files in your directory

Comment by sharfah 425 weeks and 2 days ago

the version of dos2unix on my ubuntu system operates on the files in place, so you only need one {} and can invoke dos2unix on many files at once, which is way more efficient:

find . -type f -exec dos2unix {} +
Comment by bwoodacre 425 weeks and 2 days ago

@sharfah

On my RHEL, this command works perfectly fine.

So the following is not relevant to me,

find . -type f -exec dos2unix {} {} \;

@bwoodacre

However I agree the following is much more efficient:

find . -type f -exec dos2unix {} +

Thanks bwoodacre.

I am going to edit my command with this enhancement, so the readers are benefited.

Comment by pavanlimo 425 weeks and 1 day ago

http://www.oakleyvault.us.com/

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

http://www.oakleysunglassesoutlet.us.org/

http://www.oakleysunglasses1.us.com/

http://www.oakleysunglasses.com.co/

http://www.raybans.name/

http://www.ray-ban-sunglass.us.com/

http://www.rayban--sunglasses.org/

http://www.polo-ralph-lauren.us.com/

http://www.polo-ralph-lauren-outlet.us.com/

http://www.burberry-outlet-store.us.com/

http://www.burberryoutlet-store.us.com/

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

http://www.outletonline-michaelkors.com/

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

http://www.michael-korsoutlet.in.net/

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

http://www.michaelkors-handbags.in.net/

http://www.uggs-outletboots.in.net/

http://www.uggsoutlets.us.com/

http://www.uggs-outlet.in.net/

http://www.cheapuggboots.in.net/

http://www.cheap-uggs.in.net/

http://www.louisvuitonoutlet.us.com/

http://www.louisvuitton-outlets.org/

http://www.louisvuitton.ar.com/

http://www.louisvuitton-outlet-store.com/

http://www.louis-vuittonhandbags.org/

http://www.redbottoms.in.net/

http://www.christianlouboutin-outlet.in.net/

http://www.christian-louboutin-shoes.in.net/

http://www.christian-louboutin.org.uk/

http://www.rolexreplicawatches.us.com/

http://www.replica--watches.com/

http://www.air-jordanshoes.net/

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

http://www.toryburch-outletonline.in.net/

http://www.guccioutletsonline.us.com/

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

http://www.prada-outlets.in.net/

http://www.longchamp-outlet.in.net/

http://www.longchamphandbags.in.net/

http://www.longchamphandbagsoutlet.us.com/

http://www.tiffanyandco1.us.com/

http://www.tiffanyandco-jewelry.us.com/

http://www.nikeairmaxinc.net/

http://www.nikeair-max.net/

http://www.nike-freerun.com/

http://www.chanel-handbags-outlet.in.net/

http://www.katespadeoutlets.cc/

http://www.katespade-handbags.in.net/

http://www.coachoutlet-online.in.net/

http://www.coachfactory-outletonline.in.net/

http://www.coachoutletstoreonline.jp.net/

http://www.coachpurse.in.net/

http://www.true-religionoutlet.in.net/

http://www.truereligionjeansoutlet.us.com/

http://www.truereligionoutlets.in.net/

http://www.cheaptruereligion.us.com/

http://www.nike-airmax-pas-cher.fr/

http://www.nikeair-max.fr/

http://www.airjordanpas-cher.fr/

http://www.nikefreerun.fr/

http://www.nike-roshe-run.fr/

http://www.sac-longchamp-pas-cher.fr/

http://www.sac--longchamps.fr/

http://www.poloralphlauren-pascher.fr/

http://www.louboutin-pas-chere.fr/

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

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

http://www.lunette-oakley-pascher.fr/

http://www.lunette-rayban-pas-cher.fr/

http://www.hollister-abercrombiefitch.fr/

http://www.sachermes.fr/

http://www.vanspas-cher.fr/

http://www.timberland-paschere.fr/

http://www.newbalancesoldes.fr/

http://www.converse-pas-cher.fr/

http://www.the-north-face.fr/

http://www.niketnrequin-pascher.fr/

http://www.polo-lacoste-pascher.fr/

http://www.nikeblazerpaschere.fr/

http://www.nikeair-force.fr/

http://www.sac-guesspascher.fr/

http://www.sac-vanessa-bruno.fr/

http://www.scarpehogan--outlet.it/

http://www.rayban-sunglasses.me.uk/

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

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

http://www.michael--korsoutlet.ca/

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

http://www.hollistersale.org.uk/

http://www.thenorth--face.co.uk/

http://www.mulberryhandbagsoutlet.co.uk/

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

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

http://www.nikeairmax.org.uk/

http://www.nike-free-run.org.uk/

http://www.abercrombie-and-fitch.org.uk/

http://www.nike-roshe-run.org.uk/

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

http://www.nike-air-huarache.co.uk/

http://www.longchampbags.org.uk/

http://www.hollister-abercrombie.es/

http://www.vans-shoes-outlet.com/

http://www.nikerosherun.net/

http://www.maccosmeticsoutlet.us/

http://www.abercrombie-andfitch.us.com/

http://www.hermesbirkinbags.com.co/

http://www.the-northfaceoutlet.us.com/

http://www.the-north-face.in.net/

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

http://www.reebok-outlet.in.net/

http://www.lululemonoutlets.in.net/

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

http://www.cheap-wedding-dresses.org/

http://www.beatsbydrdreheadphones.in.net/

http://www.mont-blanc-pens.us.com/

http://www.ferragamo-shoes.net/

http://www.giuseppe-zanotti.in.net/

http://www.instylerionicstyler.us.com/

http://www.babyliss.in.net/

http://www.mcm-handbags.net/

http://www.chiflatiron.cn.com/

http://www.insanityworkout.in.net/

http://www.ghdhair-straighteners.org.uk/

http://www.bottegaveneta-handbagsoutlet.com/

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

http://www.herveleger.us/

http://www.asicso.com/

http://www.soccer--shoes.net/

http://www.soccerjerseys.com.co/

http://www.celine-handbags.org/

http://www.p90x3workout.us.com/

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

http://www.hollister-clothingstore.us.com/

http://www.nike-airmax.nl/

http://www.baseball-bats.us/

http://www.iphonecase.us.com/

http://www.timberland-boots.us/

http://www.occhiali-oakley.it/

http://www.christian--louboutin.it/

http://www.ralphlauren-outlet.it/

http://www.abercrombiehollister.it/

http://www.nikeair-max.it/

http://www.vansscarpe.it/

http://www.converse-allstar.it/

http://www.borse--gucci.it/

http://www.rayban--occhiali.it/

http://www.converse--shoes.com/

http://www.saclancelpascher.fr/

http://www.toms--shoes.net/

http://www.montrespas-cher.fr/

http://www.karenmillen.me.uk/

http://www.supra--shoes.com/

http://www.juicycoutureoutlet.jp.net/

http://www.juicycoutureoutlet.com.co/

http://www.marcjacobsoutlet.us/

http://www.cheapweddingdresses.org.uk/

http://www.replica--watches.co.uk/

http://www.hollister--canada.ca/

http://www.pandora-jewelry.us.com/

http://www.pandorajewelrys.us.com/

http://www.pandora--charms.in.net/

http://www.pandora--charms.org.uk/

http://www.linksoflondon.me.uk/

http://www.thomas-sabo-uk.org.uk/

http://www.swarovski-jewelry.in.net/

http://www.swarovski.me.uk/

http://www.bottesugg-pas-cher.fr/

http://www.ugg-pas-cher.fr/

http://www.ugg-boots-uggs.co.uk/

http://www.ugg--australia.it/

http://www.uggs-canada.ca/

http://www.louisvuittonpas-cher.fr/

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

http://www.louis-vuitton-handbags.org.uk/

http://www.louisvuitton-canada.ca/

http://www.borse-louis-vuitton.it/

http://coachofficialsite.blog.com/

http://www.canadagoose.net.co/

http://www.canada-goose-jackets.us.com/

http://www.canada-goose-outlet.us.com/

http://www.canadagoose--jackets.ca/

http://www.canadagoose-paschere.fr/

http://www.canada-goose.me.uk/

http://www.moncler.org.uk/

http://www.moncleroutlet.com.co/

http://www.monclerjackets.us.org/

http://www.doudoune-monclerpascher.fr/

http://www.barbour-jackets.org.uk/

http://www.moncler--outlet.it/

http://www.canada--goose.se/

http://www.moncleronline-shop.de/

http://www.moncler.org.es/

http://www.moncler.co.nl/

http://www.canadagooses.co.nl/

http://www.barbour.us.org/

http://www.oakleys-glasses.us.com/

http://www.michael-kors-outlet.us.org/

http://www.michaelkorsoutletonline-sale.us.com/

Comment by oakleysunglasses 76 weeks and 2 days ago

Some http://www.huaracherunpas-cher.fr/nike-huarache-beige_91.html individuals are unable to http://www.huaracherunpas-cher.fr/nike-huarache-boutique_147.html carry to help http://www.huaracherunpas-cher.fr/nike-air-huarache-blanc_41.html do without http://www.huaracherunpas-cher.fr/nike-air-force-1-huarache_113.html popular footwear. http://www.huaracherunpas-cher.fr/nouvelle-nike-huarache_82.html I actually, for http://www.huaracherunpas-cher.fr/air-max-huarache_39.html one, endure responsible when http://www.huaracherunpas-cher.fr/huarache-nike-noir_149.html charged. I personally however http://www.huaracherunpas-cher.fr/nike-air-huarache-90_110.html put on the http://www.huaracherunpas-cher.fr/chaussure-huarache-nike_173.html best couple http://www.huaracherunpas-cher.fr/nike-huarache-premium_126.html of knee-high dark brown http://www.huaracherunpas-cher.fr/nike-huarache-safari_52.html shoes while http://www.huaracherunpas-cher.fr/nike-air-flight-huarache_102.html its feet are generally http://www.huaracherunpas-cher.fr/nike-huarache-fille_148.html marred http://www.huaracherunpas-cher.fr/nike-air-huarache-taille_172.html having fractures that allow the http://www.huaracherunpas-cher.fr/nike-huarache-toute-noir_154.html stream http://www.huaracherunpas-cher.fr/nike-air-huarache-original_144.html inside (let alone a myriad http://www.huaracherunpas-cher.fr/huarache-instagram_169.html of some other http://www.huaracherunpas-cher.fr/nike-huarache-2013_159.html streets smooth who http://www.huaracherunpas-cher.fr/huarache-acheter_83.html is http://www.huaracherunpas-cher.fr/nike-air-huarache-og_162.html beginnings Ia?deborah http://www.huaracherunpas-cher.fr/air-huarache-run_157.html prefer not to http://www.huaracherunpas-cher.fr/huarache-bordeaux_53.html contemplate) to make an http://www.huaracherunpas-cher.fr/nike-air-huarache-run_43.html awkward apoppinga http://www.huaracherunpas-cher.fr/huarache-femmes_170.html good of which http://www.huaracherunpas-cher.fr/nike-huarache-femmes_182.html becomes heads anytime I actually http://www.huaracherunpas-cher.fr/air-huarache-og_71.html go down http://www.huaracherunpas-cher.fr/nike-huarache-2_166.html the street. Definitely http://www.huaracherunpas-cher.fr/nike-huarache-free-run-2012_146.html the couple of http://www.huaracherunpas-cher.fr/nike-huarache-free-run-pas-cher_156.html Salt water Shoe ( http://www.huaracherunpas-cher.fr/huarache-bleu_111.html purchased at http://www.huaracherunpas-cher.fr/nikeair-huarache_88.html era Thirteen in http://www.huaracherunpas-cher.fr/nike-huarache-noir-et-rose_58.html addition to donned with http://www.huaracherunpas-cher.fr/huarache-2017_99.html pride until http://www.huaracherunpas-cher.fr/nike-huarache-marron_165.html get older 7) had http://www.huaracherunpas-cher.fr/air-huarache-homme_67.html a total combination http://www.huaracherunpas-cher.fr/nike-air-huarache-light-pas-cher_44.html of shade http://www.huaracherunpas-cher.fr/nike-huarache-pour-femme_155.html transformations through blue so that http://www.huaracherunpas-cher.fr/nike-huarache-violet_54.html you can http://www.huaracherunpas-cher.fr/nike-huarache-noir-et-bleu_130.html environment friendly http://www.huaracherunpas-cher.fr/huarache-chaussures_95.html to be able to http://www.huaracherunpas-cher.fr/huarache-nike-blanche_127.html silver precious metal http://www.huaracherunpas-cher.fr/nike-huarache-agassi_133.html to be able to http://www.huaracherunpas-cher.fr/nike-huarache_93.html platinum so that http://www.huaracherunpas-cher.fr/nike-air-huarache-2_92.html you http://www.huaracherunpas-cher.fr/huarache-vintage_42.html can sizzling white. When http://www.huaracherunpas-cher.fr/nike-huarache-blanc_85.html a sandals started glimpse http://www.huaracherunpas-cher.fr/air-huarache-solde_40.html a http://www.huaracherunpas-cher.fr/air-huarache-noir_116.html lttle bit worse-for-wear, Ia?d http://www.huaracherunpas-cher.fr/chaussure-air-huarache_180.html set you back http://www.huaracherunpas-cher.fr/air-flight-huarache_68.html your neighborhood http://www.huaracherunpas-cher.fr/huarache-enfant_62.html shop and obtain http://www.huaracherunpas-cher.fr/nike-air-huarache-run-chaussures_174.html one more package of http://www.huaracherunpas-cher.fr/huarache-run_132.html squirt http://www.huaracherunpas-cher.fr/nike-air-huarache-mid_78.html colour to create http://www.huaracherunpas-cher.fr/huarache-5_74.html the actual flip http://www.huaracherunpas-cher.fr/nike-air-huarache-light-ultramarine-og_75.html flops again.Yes, for a http://www.huaracherunpas-cher.fr/nike-huarache-homme_141.html few of people, footwear http://www.huaracherunpas-cher.fr/nike-air-huarache-light-ultramarine_64.html is emotional http://www.huaracherunpas-cher.fr/nike-air-huarache-noir_97.html assets, and http://www.huaracherunpas-cher.fr/huarache-light_50.html it is really worth http://www.huaracherunpas-cher.fr/basket-nike-huarache_45.html going further (and also http://www.huaracherunpas-cher.fr/chaussures-huarache-nike_152.html salvaging http://www.huaracherunpas-cher.fr/huarache-beige_106.html the other dollar) http://www.huaracherunpas-cher.fr/nike-huarache-light-og_115.html to produce a uncomplicated http://www.huaracherunpas-cher.fr/nike-air-huarache-safari_73.html running shoe repair rather http://www.huaracherunpas-cher.fr/nike-air-huarache-pas-chere_161.html then looking for http://www.huaracherunpas-cher.fr/nike-huarache-gris_59.html a replacement. (Just http://www.huaracherunpas-cher.fr/nike-air-huarache-solde_181.html like my own http://www.huaracherunpas-cher.fr/chaussures-air-huarache_128.html brown leafy http://www.huaracherunpas-cher.fr/achat-nike-huarache_137.html shoes can http://www.huaracherunpas-cher.fr/nike-id-huarache_158.html be changed!) Essentially the most http://www.huaracherunpas-cher.fr/nike-air-huarache-homme_150.html typical boot http://www.huaracherunpas-cher.fr/nike-air-huarache-1991_65.html vehicle repairs is http://www.huaracherunpas-cher.fr/boutique-nike-huarache_151.html actually resoling footwear. http://www.huaracherunpas-cher.fr/nike-huarache-1991_55.html Herea?vertisements this http://www.huaracherunpas-cher.fr/nike-huarache-paris_69.html short review of http://www.huaracherunpas-cher.fr/nike-air-huarache-prix_120.html ways to conduct http://www.huaracherunpas-cher.fr/nike-air-max-huarache-hybrid_121.html this simple restoration inside http://www.huaracherunpas-cher.fr/huarache-og-2017_143.html the comfort http://www.huaracherunpas-cher.fr/nike-huarache-chaussures_129.html of the http://www.huaracherunpas-cher.fr/huarache-nike-pas-cher_79.html home:The first step is http://www.huaracherunpas-cher.fr/air-huarache-nike_87.html usually to visit your http://www.huaracherunpas-cher.fr/nike-air-huarache-bleu_167.html area shoe http://www.huaracherunpas-cher.fr/air-huarache-blanc_123.html repair center. http://www.huaracherunpas-cher.fr/nike-air-zoom-huarache_89.html You need to invest http://www.huaracherunpas-cher.fr/huarache-noir-et-rose_109.html in an footwear http://www.huaracherunpas-cher.fr/nike-huarache-usa_114.html adhesive and http://www.huaracherunpas-cher.fr/nike-huarache-taille_49.html also shoe tangible http://www.huaracherunpas-cher.fr/air-huarache-noire_117.html (Shoes Goo the http://www.huaracherunpas-cher.fr/nike-huarache-id_164.html kind of brand) http://www.huaracherunpas-cher.fr/chaussure-nike-air-huarache_76.html and brand-new insoles in http://www.huaracherunpas-cher.fr/air-huarache-paris_138.html your boots and http://www.huaracherunpas-cher.fr/air-nike-huarache_107.html shoes. Pick http://www.huaracherunpas-cher.fr/nike-huarache-3_108.html from half-soles as well as http://www.huaracherunpas-cher.fr/huarache-noir_86.html full-soles. (This will http://www.huaracherunpas-cher.fr/huarache-air-max_163.html likely http://www.huaracherunpas-cher.fr/nike-huarache-leopard_57.html mainly depend upon whether http://www.huaracherunpas-cher.fr/huarache-montante_179.html or not the http://www.huaracherunpas-cher.fr/chaussures-huarache_56.html shoes carries a http://www.huaracherunpas-cher.fr/nike-air-huarache-retro_70.html level main or perhaps http://www.huaracherunpas-cher.fr/acheter-huarache_84.html increased http://www.huaracherunpas-cher.fr/huarache-noir-femme_60.html back heel.) Some http://www.huaracherunpas-cher.fr/air-huarache-grise_142.html individuals tend to buy http://www.huaracherunpas-cher.fr/nike-air-huarache-chaussures_80.html memory foam main product http://www.huaracherunpas-cher.fr/huarache-leopard_77.html and after http://www.huaracherunpas-cher.fr/nike-huarache-rouge_81.html that cut http://www.huaracherunpas-cher.fr/nike-air-huarache-blanche_153.html out completely scaled http://www.huaracherunpas-cher.fr/nike-huarache-femme-pas-cher_140.html insoles on their own.After coming http://www.huaracherunpas-cher.fr/nike-huarache-run_72.html back from http://www.huaracherunpas-cher.fr/basket-huarache_63.html this shoes source http://www.huaracherunpas-cher.fr/nike-air-force-huarache_124.html retail outlet, start a http://www.huaracherunpas-cher.fr/nike-air-huarache-rouge_47.html resoling procedure by http://www.huaracherunpas-cher.fr/huarache-usa_100.html means of cleansing http://www.huaracherunpas-cher.fr/huarache-free-run_145.html the http://www.huaracherunpas-cher.fr/huarrache-blanche_135.html aged plancher of http://www.huaracherunpas-cher.fr/nike-huarache-free-light_134.html this shoes. When all the http://www.huaracherunpas-cher.fr/nike-huarache-light-ultramarine_171.html resolution and http://www.huaracherunpas-cher.fr/nike-huarache-ultramarine_125.html dirt is http://www.huaracherunpas-cher.fr/nike-huarache-jd_46.html removed, cut-off the existing feet http://www.huaracherunpas-cher.fr/nike-air-huarache-turquoise_160.html of your http://www.huaracherunpas-cher.fr/nike-air-huarache-og-retro_101.html respective shoes or boots http://www.huaracherunpas-cher.fr/huarache-og_183.html employing a pointed http://www.huaracherunpas-cher.fr/nike-huarache-solde_94.html utility knife. After http://www.huaracherunpas-cher.fr/huarache-chaussure_122.html detaching http://www.huaracherunpas-cher.fr/free-huarache_103.html the older insoles, employ http://www.huaracherunpas-cher.fr/nike-huarache-run-pas-cher_61.html a report to http://www.huaracherunpas-cher.fr/nike-huarache-prix_66.html damage the http://www.huaracherunpas-cher.fr/huarache-noir-et-blanc_96.html spot the spot where you http://www.huaracherunpas-cher.fr/nike-air-huarache-international_104.html have to have http://www.huaracherunpas-cher.fr/nike-air-flight-huarache-og_48.html the http://www.huaracherunpas-cher.fr/ completely new plancher http://www.huaracherunpas-cher.fr/huarache-nike-chaussures_131.html to stick. Use http://www.huaracherunpas-cher.fr/huarache-light-og_105.html epoxy (be sure you http://www.huaracherunpas-cher.fr/huarache-4_118.html see the gluea?azines http://www.huaracherunpas-cher.fr/air-huarache-femme_90.html certain guidance), then http://www.huaracherunpas-cher.fr/nike-huarache-magenta_51.html cautiously http://www.huaracherunpas-cher.fr/air-huarache-light_139.html use the lone. The http://www.huaracherunpas-cher.fr/nike-air-huarache-light_168.html easiest way to http://www.huaracherunpas-cher.fr/nike-air-huarache-beige_112.html guarantee the insoles http://www.huaracherunpas-cher.fr/nike-air-huarache-run-pas-cher_98.html will be safely linked is to placed the boots and shoes with in addition to stomp all over within them. When the stuff is actually dried, use the utensil to cut absent every shown adhesive and also edges. As well as Eureka! The older shoes are as good as new!

Comment by scott154 7 weeks and 5 days ago

Your point of view

You must be signed in to comment.