Recursive Copy?

Steve Jardine sjardine
Fri Aug 11 21:07:54 PDT 2006


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...


	Steve



More information about the Linux-users mailing list