tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* DEC find vs. GNU find
@ 2000-06-30 13:24 Jonathan Burelbach
  0 siblings, 0 replies; only message in thread
From: Jonathan Burelbach @ 2000-06-30 13:24 UTC (permalink / raw)
  To: tru64-unix-managers

I seem to have stumbled over an interesting DECism with 4.0 find.  When
looking for files older than N days you can say "find . -ctime +N"  On
DEC if N is say 2 that means files created > 72 Hours ago.  if you say
"find . \( -ctime +2 -o -ctime 2 \)" I would assume you would find 
files created >72 hrs ago and 48-72 hrs ago, but you get >72 & 24-48
hrs.  To get >48 hrs N must = 1.  The GNU find and Solaris find work
the way I would expect.  Who's right? or am I just being stupid and 
that's the way it oughta be.

Jon

-- 
=========+=========+=========+=========+=========+=========+=========+
Jonathan Burelbach                               jburelba@mail.nih.gov
Unix Systems Adminstrator                   jburelba@topaz.cit.nih.gov
NIH/CIT/DCSS/SOSB;12 South Dr.;Bldg 12B/2N207;Bethesda  (301) 496-7372

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

only message in thread, other threads:[~2000-06-30 13:24 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-06-30 13:24 DEC find vs. GNU find Jonathan Burelbach

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