[CentOS] how to tell if a file is older than 30 days?
Bowie Bailey
Bowie_Bailey at BUC.comThu Sep 15 16:27:03 UTC 2005
- Previous message: [CentOS] how to tell if a file is older than 30 days?
- Next message: [CentOS] Re: how to tell if a file is older than 30 days? -- [practices] find -mtime usage
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
From: Jerry Geis [mailto:geisj at pagestation.com] > > I am trying to find out how to tell if a given file is 30 days or older. > How is that type of thing done in shell scripts. find directoryname -mtime +30 -print Will list all files in a directory that have not been modified in the last 30 days. Read the man page for 'find'. It can find files based on almost anything. Bowie
- Previous message: [CentOS] how to tell if a file is older than 30 days?
- Next message: [CentOS] Re: how to tell if a file is older than 30 days? -- [practices] find -mtime usage
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the CentOS mailing list