|The stupid question is the question not asked|
copy files based on nameby raggmopp (Novice)
|on Feb 27, 2013 at 15:37 UTC||Need Help??|
raggmopp has asked for the
wisdom of the Perl Monks concerning the following question:
The title I'm sure sounds familar but I have been unable to find much to help. So I came up with the following but I'm thinking there is a better way.
What I need to do is copy directories and their files based on the directory name. The directory name is assigned by the Oracle SR module, so an example could be "SR1520931" and it is copied to the directory of ".../SR15xxxxx/SR152xxxx/SR1520xxx/"
Here is the section where I question the efficiency
Using rsync to pull a copy of the dir&files and put them into the appropriate directory.
This works, but is there a better way?