I have the following command as a cronjob in Solaris version 10 to clean files from a folder.
'find' /home/user1/data01/data001/*/logs/ -maxdepth 1 -mtime +30 -type f | xargs 'rm' -f \;
I am getting the following errors:
find: bad option -maxdepth
find: path-list predicate-list.
Can anyone tell me what is wrong here?