The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 03-21-2005
vivek_scv vivek_scv is offline
Registered User
  
 

Join Date: Mar 2005
Posts: 4
Script for automatic deletion of old files

Hi,
I have a folder with limited space. I do not have provisions to increase the space for this folder.
So i have to delete files which are more than 1 month old automatically.
But, i need to maintain the files created by 4 users and delete all the other files automatically which is more than 1 month.
So my script should be like i find all the files that do not belong to the 4 users and delete them if it is more than 1 month old.
Can someone help me to generate a script for this.
Regards,
Vivek