A fancy little trick with the find command, you can do -name or declarations with the find command!

find . ( -name “.sh” -o -name “.pl” -o -name “*.php” ) -mtime +20

^that command will find (recursively) any php, pl, and sh files older than 20 days in the current directory.

Thanks, unixtips.

Mario Loria is a builder of diverse infrastructure with modern workloads on both bare-metal and cloud platforms. He's traversed roles in system administration, network engineering, and DevOps. You can learn more about him here.