1

recursivly going through folders and subdirectorys and running delete from crontab

view story
linux-howto

http://www.unix.com – Hio, So I have a crontab delete of older files setup. This script works fine if I run them by each individual directory. Problem is there are so many thousands of files and hundreds of directories and sub directories that I need to recursively have it go through and delete files by directory instead of doing the "\*\*\" method. Right now I get errors when this runs unless I go through each folder and run the command by folder. How can I modify the below to go through all folders under the "audit" folder and run the same delete command? I saw the ls -1R command but wasnt %10 (HowTos)