Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
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 browsing the Monastery: (5)
As of 2016-06-30 05:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred method of making French fries (chips) is in a ...











    Results (389 votes). Check out past polls.