locate -r '^core\.'It finds all files that begin with "core." as core files do. If your system is like most the database locate uses is only updated nightly so may be a bit out of date. But this is fine for a script that looks for old core files to delete them.
Computer Tips - Linux: How can I quickly find all core files on my box?
Date: 2012jul5
OS: Linux
Q. Linux: How can I quickly find all core files on my box?
A. This is fast: