The find command ?

From: <Mark_Greenhalgh_at_idx.com>
Date: Thu, 22 Jan 1998 16:10:00 -0500

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_at_idx.com
Received on Thu Jan 22 1998 - 22:22:00 NZDT

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:37 NZDT