I have directory with files from 2010 year.. I want to delete all files older than 500 days and I tried this:
find /var/log/arc/* -type f -mtime +500 -delete {}\;
But I get this:
-bash: /usr/bin/find: Argument list too long
As I know this means that there are too many files and find
can't handle them. But even if I put +2000
which is 3+ years I still getting this.
What I'm missing here?