Recursive Copy?

Roger Oberholtzer roger
Thu Aug 10 02:22:00 PDT 2006


On Tue, 2006-08-08 at 12:47 +0000, Steve Jardine wrote:
> All,
> 
>     I need to copy a group of directories recursively into a single directory. I need to make sure that no files
> overwrite each other. I would like to have each duplicate file name appended with a number to make them unique. 
> 
>     Anyone got a utility like this? Or an idea?

cp -a source dest

This does all directories, permissions, access times, etc. The -a means
archive.

> 
>     TIA.
> 
> 	Steve
> _______________________________________________
> Linux-users mailing list ( Linux-users at linux-sxs.org )
> Unsub/Password/Etc: http://mail.linux-sxs.org/cgi-bin/mailman/listinfo/linux-users
> 
> Need to chat further on this subject? Check out #linux-users on irc.linux-sxs.org !
-- 
Roger Oberholtzer

OPQ Systems AB
Ramb?ll Sverige AB
Kapellgr?nd 7
P.O. Box 4205
SE-102 65 Stockholm, Sweden

Tel: Int +46 8-615 60 20
Fax: Int +46 8-31 42 23




More information about the Linux-users mailing list