tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: Mark_Greenhalgh () idx ! com
To: tru64-unix-managers
Subject: The find command ?
Date: Thu, 22 Jan 1998 21:10:00 +0000	[thread overview]
Message-ID: <96078654410994.tru64-unix-managers.marc@archive.invalid> (raw)



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

                 reply	other threads:[~1998-01-22 21:10 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox