Recursive Copy?

Roger Oberholtzer roger
Thu Aug 10 12:27:58 PDT 2006


On Thu, 2006-08-10 at 13:33 -0400, Ric Moore wrote:
> On Thu, 2006-08-10 at 11:22 +0200, Roger Oberholtzer wrote:
> > 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
> 
> I have used cp -raf to grab everything... I think -a does pretty much
> the same thing. 

-a is short for -dpR

But I am not sure about the -f you use. Seems risky. But what is life
without risks?

--
Roger Oberholtzer




More information about the Linux-users mailing list