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
The same working fine for me...inside a shell script.
Check ur script once again ...You might hav missed somethng..
Thanks for your help.
I have checked the shell script and it is fine.
I am having a shell script name test.sh
and it contains only one line which is
find /apps/qualdb/gpcn/scripts/cab_outbound/archive -name 'z*' -mtime +28 -exec rm {} \;
and when i am running using ksh test.sh it is showing exception as find: missing argument to `-exec'
the same thing when i am running in command prompt it is working fine.
Is there is any way to attach the file in this forum so that i can attcah the screen shot of whet i am trying.