find . -name 'server.log.*' -type f -mtime +10 -exec ls -l {} \; I have used this but its not working. Some one can assist me in correcting the cmd
It seems to work OK on my Solaris 9 box. I choose to use xargs instead of -exec because it's more efficient: find . -name 'server.log.*' -type f |xargs ls -l
Of course, when you want to delete files it is:
find . -name 'server.log.*' -type f |xargs rm
Yes (14) | ![]() | |
No (14) | ![]() | |
I don't know (15) | ![]() |