How to retrieve all the linked script files/ctl files/sql files?

Hi I am going to migrate our datawarehouse system from HP Tru 64 Unix to the Red Hat Linux.

Inside the box, it is running around 40 cron jobs; inside each cron job, it is calling other shell script files, and the shell script files may again call other shell script files or ctl files(for sqlloader use), or sql files.

Previously we wanted to list all the used files one by one manually, but we found it is too tedious, and is error-prone.

So, i wanted to write a program which list and copy all the �useful" shell scripts/ctrl files/sql files.
But i am not sure how to do it.

Can anybody shed some light on this?

Thanks a lot!

Just clarify my question:

My shell script files will be like this:

$xxx_path/xxx2.sh
sqlldr $ctl_path/abcd.ctl

What I wanted is: to list all the "shell script files" that have been called and copy them to a separate directory.

Can this be done?