I have a folder which contains many files. I want to delete files older than 30 days, so I use the command:
find cache/ -mtime +30 -exec rm {} \;
But my SSH session disconnects before the command completes.
How can I limit the number of files that are deleted at one time? For example:
find cache/ -mtime +30 -LIMIT 10000 -exec rm {} \;