How to write a shell script for an simple house keeping job which will find all files older than 7 days and remove it from the system. Then write down the format in crontab which able to call your script every night at 23:59.