Hi - Is there any easy way of deleting files that are over 15 days old from the system ? If necessary, I can use the day the files were created as the extension - e.g. <filename>.20020520
Hi,
Try some useful options of find command:
# find /tmp -name "*.ext" -mtime 5 -exec ls -l {} \;
The above command will list all files in /tmp with extension .ext which were created/modified 5 days ago. You can change ls -l to rm and then you will delete the files.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.