Dear experts,
I have a root file (1), and I want to copy only the directories run_340453/lb_*/AFP in another root file, and I want to keep the same structure, thus in the new root file I want to see the same folders run_340453/lb_*/AFP. When I use the small script (2), in the new file I do not have lb_*/AFP folders but just one AFP in which I guess it put all the lb_* hist! Do you see what is wrong?
Regards
Dear Couet,
yes, if I do (1), then in the file 2 I won’t have the subdir “run_340453/lb_1525/AFP”. It will just copy the AFP directory in the new file, but how can I keep the same structure into file 2?
Regards
Dear Couet
in file1 I have: run_340453/lb_1525/AFP
and when using rootcp -r in file2 I have: run_340453/AFP
What I need is something to tell him to make/create the same struct, thus I also want “run_340453/lb_1525/AFP” in file2.
Is such option available? if not how can I do that?
Regards
$ pwd
/tmp
$ mkdir a
$ mkdir b
$ ls
a b
$ cd a
$ mkdir a1
$ cd a1
$ mkdir a2
$ pwd
/tmp/a/a1
$ ls
a2
$ cd ../../
$ pwd
/tmp
$ ls
a b
$ cp -r a/a1/a2 b
$ ls b
a2
$