Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^3: removing directories with wildcard glob in OS-portable way

by BrowserUk (Pope)
on Dec 30, 2012 at 01:15 UTC ( #1010868=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    perl -E"system q[for /d %d in (scale-*) do @rd /q /s %d]"
    
  2. or download this
    perl -MFile::Path -MFile::Spec -wE"File::Path::remove_tree(glob(File::
    +Spec->catdir('.','scale-').'*'));"
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (5)
As of 2014-12-18 04:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (41 votes), past polls