Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Find Empty directories and removing it

by smokemachine (Hermit)
on Jan 04, 2006 at 05:27 UTC ( #520798=note: print w/replies, xml ) Need Help??


in reply to Find Empty directories and removing it

could be this?
perl -e 'while(<./*>){@a=<$_/*>;rmdir if -d && ! $a[0]}'

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://520798]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (6)
As of 2022-05-26 14:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (93 votes). Check out past polls.

    Notices?