Hi,
I am using the command find /apps/qualdb/gpcn/scripts/cab_outbound/archive -name 'z*' -mtime +28 -exec rm {} \;
in unix command prompt
for deleting the files in my unix system under the specfied folder. It was succesfull.
But when i running this command inside a shell script name test.sh it is giving an error message like find: missing argument to `-exec'
Why this is happening the same code when running in command prompt it is success bu running inside shell script it fails.

.
Thanks for your help