Is there a way to limit the number of results returned by the FIND command on an unix system? We are having performance issue due to an unsually large number of files in some directories.
I'm tryging to do something like:
find /some/log -type f -name *.log -exec rm {} ; | limit 5000