[X-Unix] Flattening directory hierarchy
    Kuestner, Bjoern 
    Bjoern.Kuestner at drkw.com
       
    Tue Nov  9 06:18:29 PST 2004
    
    
  
$ find . -type f -exec cp {} /Users/me/new_folder \;
                       ^^  May want to use CpMac
You may want to check for existing files, too, in case you have two titles
"Love me tender" in your folder hierarchy.
Depending on how you check and deal with duplicates you may also want to
create a copy of your folder first and then use "mv" instead of cp so that
you can easily see what was moved and what has not been flattened.
Bjorn
_______________________________________________
X-Unix mailing list
X-Unix at listserver.themacintoshguy.com
http://listserver.themacintoshguy.com/mailman/listinfo/x-unix
--------------------------------------------------------------------------------
The information contained herein is confidential and is intended solely for the
addressee. Access by any other party is unauthorised without the express 
written permission of the sender. If you are not the intended recipient, please 
contact the sender either via the company switchboard on +44 (0)20 7623 8000, or
via e-mail return. If you have received this e-mail in error or wish to read our
e-mail disclaimer statement and monitoring policy, please refer to 
http://www.drkw.com/disc/email/ or contact the sender. 3166
--------------------------------------------------------------------------------
    
    
More information about the X-Unix
mailing list