Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
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 all is quiet...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (5)
As of 2017-10-17 02:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My fridge is mostly full of:

















    Results (218 votes). Check out past polls.

    Notices?