[comp.unix.xenix] find, resolution

root@libove.UUCP (Jay M. Libove) (10/11/88)

I posted about a week ago (already expired on my site, that's why no
references in this article) about SCO Xenix "find" command not doing
what I expected it to when I did

% find . -mtime n -print

which I expected to print the names of all files modified in the past n
days, but which actually printed the names of all files modified exactly
(within 24 hours or so) n days ago...

Someone sent back that their manual said "-mtime -n" would find files
modified within the past n days, and "-mtime +n" would find files
modified at least n days ago.

My manuals (SCO Xenix) do not include this, but my "find" program does.

Thanks for all of the responses!

-- 
Jay Libove		ARPA:	jl42@andrew.cmu.edu or libove@cs.cmu.edu
5731 Centre Ave, Apt 3	BITnet:	jl42@andrew or jl42@drycas
Pittsburgh, PA 15206	UUCP:	uunet!nfsun!libove!libove or
(412) 362-8983		UUCP:	psuvax1!pitt!darth!libove!libove

jfh@rpp386.Dallas.TX.US (The Beach Bum) (10/20/88)

In article <177@libove.UUCP> root@libove.UUCP (Jay M. Libove) writes:
>Someone sent back that their manual said "-mtime -n" would find files
>modified within the past n days, and "-mtime +n" would find files
>modified at least n days ago.
>
>My manuals (SCO Xenix) do not include this, but my "find" program does.

In the paragraph marked `Description', there is a sentence which reads:

	'In the descriptions, the argument _n is used as a decimal
	 integer where _+_n means more than _n, _-_n means less than _n
	 and _n means exactly _n.'

			-- find(C), User's Reference
-- 
John F. Haugh II                        +----Make believe quote of the week----
VoiceNet: (214) 250-3311   Data: -6272  | Nancy Reagan on Richard Stallman:
InterNet: jfh@rpp386.Dallas.TX.US       |          "Just say `Gno'"
UucpNet : <backbone>!killer!rpp386!jfh  +--------------------------------------