I am trying to write a housekeeping that finds all .trc files older than x days in a given FS, checks if they are used and gzips them if they are not used by any process. I need to do it without calling any additional .sh script.
There are many UNIXes... depending what you mean with "UNIX", they are usually there. If you would check the man page for find, you might find -a and -o instead.