Please verify the simple Shell code

Hi,

i am trying to write script which will delete files(more than 90 days older) from different directories. Please check its ok if i implement it in SUN solaris10; One important thing i used here "exec" flag. I heard from someone- as i have lots of files "exec" flag may give error like too long argument. So, what should i do to remove huge files.

#!/usr/bin/sh

find /var/opt/backup/cam* -mtime +90 -exec rm {} \;
find /var/opt/backup/tmp/zam* -mtime +90 -exec rm {} \;

find /var/opt/otherbackup/cat* -mtime +90 -exec rm {} \;

find /var/opt/otherbackup/cat* -mtime +5 -exec rm {} \;

Try piping to xargs

find /var/opt/otherbackup/cat* -mtime +5 -print | xargs -n 100 rm -f 

... should do the trick

Isn't this a duplicate thread ??? ...