I have a list with .sql files File-list.txt as follow
1.sql
abc.sql
Moreover I have a structure with folders and files with the parent directory to be called SOURCE
Code: Select all
SOURCE
|-> FOLDER_1
|-> 1.sql
|-> 2.sql
|-> FOLDER_2
|-> FOLDER_4
|-> abc.sql
|-> 10.sql
And a target which is empty.
I want to copy all the files from SOURCE which are included in File-list.txt files
with their structure.
For example above I want after the exceution to have
Code: Select all
TARGET
|-> FOLDER_1
|-> 1.sql
|-> FOLDER_2
|-> FOLDER_4
|-> abc.sql
Could you please help me ?