find . -path '/mnt/ftp/ben/brc' -prune -o -iregex '.*\.\(docx\|xls\|txt\|pdf\|xlsm\|doc\|xlsx\|CVS\|csv\)$' -mtime +730 -delete
I need all docx, xls, txt, xlms, doc files older than 2 years from my ftp server but also want to exclude /mnt/ftp/ben/brc
directory. How can I achieve that?