How to copy files while keeping directory structure?
Posted
by
Cubic
on Ask Ubuntu
See other posts from Ask Ubuntu
or by Cubic
Published on 2012-12-17T16:20:46Z
Indexed on
2012/12/17
17:14 UTC
Read the original article
Hit count: 284
This is for a java project, but the same concept can be applied more generally:
Basically, I have a projects with all *.java
files located in some sub directory of src
. Now I want to grab all directories with the name test in that directory tree and move them into a new directory called tests
, e.g.:
src->com->a1
-> A.java
-> B.java
-> test
-> test1.java
-> test2.java
to
src->com->a1
-> A.java
-> B.java
tests->com->a1->test
-> test1.java
-> test2.java
How would I best do that?
© Ask Ubuntu or respective owner