ok i am setting up a script to run daily using crontab. This script will search the root filesystem and delete any and all core files. I have set up this script
The only problem i get with this script is it searches for directories and attempts to delete them. Since i have probably 100-200 directories(not by my creation) with the name core(driver files mainly) i do not want to be spammed with a hugh list of directories that cannot be deleted. Is there a way i can fix up this script so it only looks for files and ignores all directories?
BTW this job has to be finished by 1800 hours today. Thank you for all the help you can provide
ok thanks ynixon with the -type f on it the script works perfectly. Next questions is: is there a way to send an output to file of the files that were deleted?