tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* The find command ?
@ 1998-01-22 21:10 Mark_Greenhalgh
  0 siblings, 0 replies; only message in thread
From: Mark_Greenhalgh @ 1998-01-22 21:10 UTC (permalink / raw)
  To: tru64-unix-managers



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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1998-01-22 21:10 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-01-22 21:10 The find command ? Mark_Greenhalgh

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