Clayton Bonser wrote:
> Hi all,
> I would like to know if it's possible, and if so how, to merge folders,
> including sub-folders.
> What I want to learn is what command(s) are needed to compare two
> folders, including the sub folders within, and copy all data from one
> folder that is not a repetition, to another.
> The structure looks like this:
> 
> /location a/foldername/subfolder 1/subfolder 2/ and so on
> 
> /location b/foldername/subfolder 1/ subfolder2/ and so on
> 
> Where the folders' and sub folders' names are identical in each case,
> only the location is different.
> I want the contents of </location a> compared with the contents of
> </location b>, and those files that are not the same copied to
> </location b>. Similarly </location a/subfolder 1>, compared and copied
> to </location b/subfolder 1>, and so on down the file tree.
> 
> Can this be done in one command? or do I need to repeat the steps
> required for each level in the tree?

I think "cp -au" is what you want.  Check the man page for cp for details.

Chad Martin


To unsubscribe from this list, please email [EMAIL PROTECTED] & you will be 
removed. 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/LINUX_Newbies/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to