Copying all files with a certain extension from all subfolders in a directory
January 14, 2014
CentOS 5, CentOS6, Essbase 11.1.2, Essbase 11.1.2.2, Essbase 9.3, Oracle Hyperion 9.3.1, Oracle Hyperion EPM 11.1.1.3, Oracle Hyperion EPM 11.1.2.1, Oracle Hyperion EPM 11.1.2.2, Other Tech, Red Hat Enterprise Linux 4, Red Hat Enterprise Linux 5 (RHEL5), Red Hat Enterprise Linux 6
0 Comments
I had to copy all of the files (calc scripts) from my Essbase servers’ application directories, and wanted to preserve the folder layout in the destination. I ran the following against all of my servers to achieve this:
cp --parents `find $ESSBASE_APP_DIR -name *.csc` .
I ended up with a destination folder containing all of my application directories with the database subdirectory containing just the calcs.
Good luck!
[ad#ad-post]