Recursive Copy?
Roger Oberholtzer
roger
Sat Aug 12 01:06:29 PDT 2006
On Sat, 2006-08-12 at 04:07 +0000, Steve Jardine wrote:
> Okie all,
>
> Here's the sceneraio:
>
>
> I have a directory tree:
>
> A-
> |->B
> |->C
> -->D-
> ->E
>
>
> In this directory tree I have possibly several same named files in different directories. What I want to do is to
> recursively copy all the files in the directory tree to a single directory, say directory F. In that directory I would like duplicate files names to have prepended differences.
>
> Example:
>
> A/B/t.txt
> A/C/t.txt
> A/D/E/t.txt
>
> all being copied into the directory F looking like:
>
> F/t1.txt
> F/t2.txt
> F/t3.txt
>
> Any ideas?
>
>
> Thanks all for your responses - and further ideas...
Perhaps something with cpio in pass-thru mode? There are options for
making or not making directories.
>
>
> 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 !
More information about the Linux-users
mailing list