From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96078654410994.tru64-unix-managers.marc@archive.invalid> From: Mark_Greenhalgh () idx ! com Date: Thu, 22 Jan 1998 21:10:00 +0000 To: tru64-unix-managers Subject: The find command ? X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96078654410994 Hi all, I'm trying to use the find command to remove old file and the -mtime option is either busted or I'm just not using it right. # date Thu Jan 22 16:10:42 EST 1998 # ls -lc total 298336 -rw-r--r-- 1 root dba 9990307 Jan 19 20:18 train-19-Jan-98_2000.DMPZ -rw-r--r-- 1 root dba 10009825 Jan 20 20:25 train-20-Jan-98_2000.DMPZ -rw-r--r-- 1 root dba 9964051 Jan 21 20:18 train-21-Jan-98_2000.DMPZ -rw-r--r-- 1 root dba 91144493 Jan 19 20:16 vantive-19-Jan-98_2000.DZ -rw-r--r-- 1 root dba 92036957 Jan 20 20:23 vantive-20-Jan-98_2000.DZ -rw-r--r-- 1 root dba 92329673 Jan 21 20:16 vantive-21-Jan-98_2000.DZ # ls -l total 298336 -rw-r--r-- 1 root dba 9990307 Jan 19 20:18 train-19-Jan-98_2000.DMPZ -rw-r--r-- 1 root dba 10009825 Jan 20 20:25 train-20-Jan-98_2000.DMPZ -rw-r--r-- 1 root dba 9964051 Jan 21 20:18 train-21-Jan-98_2000.DMPZ -rw-r--r-- 1 root dba 91144493 Jan 19 20:13 vantive-19-Jan-98_2000.DZ -rw-r--r-- 1 root dba 92036957 Jan 20 20:20 vantive-20-Jan-98_2000.DZ -rw-r--r-- 1 root dba 92329673 Jan 21 20:13 vantive-21-Jan-98_2000.DZ # # # find ./ -name \* -mtime +2 -exec ls -lc {} \; Doesn't find any files even though from the above directory listing the it should at least find the Jan-19 files ? Shouldn't it ? The way I'm reading it is any files that were last modified more than 2 days ago. If today is the 22nd than 2 days ago would be the 20th ? # # # find ./ -name \* -mtime +1 -exec ls -lc {} \; -rw-r--r-- 1 root dba 91144493 Jan 19 20:16 ./vantive-19-Jan-98_2000Z -rw-r--r-- 1 root dba 9990307 Jan 19 20:18 ./train-19-Jan-98_2000.DMZ # Thanks Mark Greenhalgh IDX Systems Corporation mark_greenhalgh@idx.com