Hi All,
I am doing this for svn patch making. I got the list of files to make the patch. I have the list in a file with path of all the files.
To Do
From Directory : /myproject/MainDir
To Directory : /myproject/data
List of files need to copy is in the file: /myproject/filesList.txt
cat /myproject/filesList.txt input
/myproject/MainDir/class2/c/nnnn.java
/myproject/MainDir/class1/a/zyx.java
/myproject/MainDir/class1/b/nnnn.java
/myproject/MainDir/class1/b/hh.java
Directory structure
MainDir
class1
a
abc.java
zyx.java
b
hh.java
nnnn.java
c
class2
a
a.java
hhhh.java
b
hhhh.java
zyx.java
c
nnnn.java
d
e
class3
aa
dd
system
system123
pp
Now the thing i needed is :
I want all the ONLY files listed in filesList.txt to be copied in /myproject/data with the same path.
So that the output will be all the files copied as ::
/myproject/data/class2/c/nnnn.java
/myproject/data/class1/a/zyx.java
/myproject/data/class1/b/nnnn.java
/myproject/data/class1/b/hh.java
is it possible..?
[ pls tell me if my doubt is not clear ]
.