|
Copying a Directory Structure to a new structure
Hi all
Is it possible to copy a structure of a directory only.
e.g.
I have a file with the following entries that is a result of a find :-
/dir1/dir2/file.dbf
/dir1/dir2/dir3/file1.dbf
/dir1/file.dbf
I want to copy these to a directory and keep the structure however starting at a new dir :
/newdir/dir1/dir2/file.dbf
/newdir/dir1/dir2/dir3/file1.dbf
/newdir/dir1/file.dbf
when I use the cp -R command, the problem is that because there is a file, it just copies the file and not the structure.
Regards
J
|