cool trick for listing directories

I had to modify a bunch of permissions on directories today, and going thru them one by one didn’t sound good at all .. so I did this:

 chmod 775 `ls -l| awk ‘/^d/ {print $NF }’`

 The listing in the second part of this is also effective if you just want a list of all your subdirectories within a given directory.




You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

6 Responses to “cool trick for listing directories”

  1. ALVIN Says:


    CheapTabletsOnline.com. Canadian Health&Care.Best quality drugs.Special Internet Prices.No prescription online pharmacy. High quality drugs. Buy drugs online

    Buy:Propecia.Zithromax.Viagra Super Force.Viagra Professional.Cialis Professional.Soma.Viagra Super Active+.Cialis Super Active+.Cialis Soft Tabs.Levitra.Viagra.Tramadol.VPXL.Viagra Soft Tabs.Cialis.Maxaman.Super Active ED Pack….

  2. LUKE Says:


    CheapTabletsOnline.Com. Canadian Health&Care.No prescription online pharmacy.Special Internet Prices.Best quality drugs. Low price pills. Buy pills online

    Buy:Super Active ED Pack.Viagra Super Active+.Viagra Super Force.Cialis Professional.Zithromax.Levitra.Cialis Super Active+.Viagra.Maxaman.Propecia.Tramadol.Viagra Soft Tabs.Cialis.Viagra Professional.Soma.VPXL.Cialis Soft Tabs….

  3. LESTER Says:


    CheapTabletsOnline.com. Canadian Health&Care.Best quality drugs.No prescription online pharmacy.Special Internet Prices. No prescription drugs. Buy pills online

    Buy:Lumigan.Petcam (Metacam) Oral Suspension.Synthroid.Nexium.Valtrex.Human Growth Hormone.Mega Hoodia.Arimidex.Zovirax.Retin-A.100% Pure Okinawan Coral Calcium.Zyban.Accutane.Prednisolone.Actos.Prevacid….

  4. LYLE Says:


    NEW FASHION store. Original designers collection at low prices!!! 20 % TO 70 % OFF. END OF SEASON SALE!!!

    BUY FASHION. TOP BRANDS: GUCCI, DOLCE&GABBANA, BURBERRY, DIESEL, ICEBERG, ROBERTO CAVALLI, EMPORIO ARMANI, VERSACE…

  5. ARTURO Says:

    Abilify@official.site” rel=”nofollow”>.

    Buywithout prescription…

  6. ANTHONY Says:

    rxlist@abilify.now” rel=”nofollow”>..

    Buydrugs without prescription…

Leave a Reply