Copying all files with a certain extension from all subfolders in a directory
January 14, 2014 CentOS 5, CentOS6, Essbase 11.1.2, Essbase 22.214.171.124, Essbase 9.3, Oracle Hyperion 9.3.1, Oracle Hyperion EPM 126.96.36.199, Oracle Hyperion EPM 188.8.131.52, Oracle Hyperion EPM 184.108.40.206, 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.