RE: Shell Scripting Question.

2002-11-26 Thread Dan de Haan
I got it to work, thank you all for your suggestions. -Dan -Original Message- From: Michael Weber [mailto:[EMAIL PROTECTED]] Sent: November 26, 2002 12:11 PM To: [EMAIL PROTECTED] Subject: Re: Shell Scripting Question. find /path -ctime +2 -ok rm {} \; This will find all files

Re: Shell Scripting Question.

2002-11-26 Thread Justin Zygmont
try checking out the man page for find. It is the -mtime option if I remember correctly. On Tue, 26 Nov 2002, Dan de Haan wrote: > I have a simple shell script that runs from cron and makes a backup of some > filed to another PC via NFS. I want to have it automatically delete old > backups fo

RE: Shell Scripting Question.

2002-11-26 Thread Stephen Mah
To: [EMAIL PROTECTED] Subject: Shell Scripting Question. I have a simple shell script that runs from cron and makes a backup of some filed to another PC via NFS. I want to have it automatically delete old backups form the NFS server. How would I do that, is there a delete files older then N da

Re: Shell Scripting Question.

2002-11-26 Thread Randy Kelsoe
Dan de Haan wrote: I have a simple shell script that runs from cron and makes a backup of some filed to another PC via NFS. I want to have it automatically delete old backups form the NFS server. How would I do that, is there a delete files older then N days command? -Dan /usr/bin/find . -a

Re: Shell Scripting Question.

2002-11-26 Thread Michael Weber
find /path -ctime +2 -ok rm {} \; This will find all files starting with /path that have been changed more than 2 days ago and will prompt you for deleting them one by one. Get rid of the -ok if you KNOW it will delete only the files you want deleted. Change -ctime to -atime to find by access ti

Shell Scripting Question.

2002-11-26 Thread Dan de Haan
I have a simple shell script that runs from cron and makes a backup of some filed to another PC via NFS. I want to have it automatically delete old backups form the NFS server. How would I do that, is there a delete files older then N days command? -Dan -- Psyche-list mailing list [E