Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: •Re: Remove eMpTy Directories

by jdporter (Paladin)
on Nov 19, 2002 at 16:17 UTC ( [id://214171]=note: print w/replies, xml ) Need Help??


in reply to •Re: Remove eMpTy Directories
in thread Remove eMpTy Directories

perl -MFile::Find -e 'finddepth( { no_chdir => 1, wanted => sub { rmdi +r } }, @ARGV )'

jdporter
...porque es dificil estar guapo y blanco.

Replies are listed 'Best First'.
Re^3: Remove eMpTy Directories
by Aristotle (Chancellor) on Nov 20, 2002 at 00:28 UTC
    Quite inefficient. perl -MFile::Find -e 'find( { wanted => sub {}, postprocess => sub { rmdir $File::Find::name } }, @ARGV )'

    Makeshifts last the longest.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (3)
As of 2024-12-08 16:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which IDE have you been most impressed by?













    Results (52 votes). Check out past polls.