[RndTbl] script for file copy

VE4ER / Andy ve4per at aim.com
Wed Jul 7 12:10:29 CDT 2010


Can anybody suggest a script to copy files from one directory structure 
to another changing the filename in the process to include the
original folder names, but only if an actual file with extension exists 
in the bottom child folder :

Go from :

Master Folder  ------> Sub Folder1 -----> Sub Sub Folder1 ---> 
filename.example
                         ------> Sub Folder2 -----> Sub Sub Folder1 ---> 
filename.example
                         ------> Sub Folder2 -----> Sub Sub Folder2 ---> 
filename.example


To:

       /Var/MainFolder/Master_Sub1_SubSub1_filename.example
        /Var/MainFolder/Master_Sub2_SubSub1_filename.example
        /Var/MainFolder/Master_Sub2_SubSub2_filename.example   ....etc


Thanks
Andy



More information about the Roundtable mailing list