Help creating a Bash script
For starters, I'm a newbie in Linux. So, I've pretty much worked my way in creating a Linux server to use as an FTP server. Everything so far is functioning as it's suppose to.
I've set up quotas for users and groups. However, I would like to run a cron job to run a script that would go in and view files that are 45 days older than the system date. In which case, it would delete the files in everyones home directory that meet that criteria.
So, I thought I ask the experts and maybe you guys can help me create a script that would do just that.
if files are 45 days or older, delete for user's or groups directories.