Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Check Directories for Files

by leocharre (Priest)
on Nov 24, 2009 at 20:40 UTC ( #809201=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    for dir in $(find /rootdir/101/ -type d -name "B??"); 
    do find $dir -type f -exec rm '{}' \; ;
    ...
    
    # or to move elsewhere
    # do find $dir -type f -exec mv '{}' /tmp/foundstuff/ \; ;
    
  2. or download this
    $ find /rootdir/101/ -type f -exec mv '{}' /tmp/foundstuff/ \;
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (7)
As of 2014-07-13 23:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (252 votes), past polls