1 |
Richard Fish wrote: |
2 |
> On 9/29/06, Daniel Iliev <danny@××××××××.com> wrote: |
3 |
>> tried all the variations, not that it is the exact command. I was also |
4 |
>> very pissed off when I had to discover that the "find manual page" isn't |
5 |
>> very correct. It never made clear that "-ctime 3" means "now plus 3 |
6 |
>> days" and "-ctime -3" means "now minus 3 days". |
7 |
> |
8 |
> Well the man page does have this paragraph in it (emphasis added): |
9 |
> |
10 |
> If you are using find in an environment where security is |
11 |
> important |
12 |
> (for example if you are using it to seach directories that are |
13 |
> writable |
14 |
> by other users), you should read the "Security Considerations" |
15 |
> chapter |
16 |
> of the findutils documentation, which is called Finding Files |
17 |
> and comes |
18 |
> with findutils. **That document also includes a lot more |
19 |
> detail and |
20 |
> discussion than this manual page, so you may find it a more |
21 |
> useful |
22 |
> source of information.** |
23 |
> |
24 |
> So you can get better documentation from the info pages by running |
25 |
> "info find.info". If you want specifics on the time options: |
26 |
> |
27 |
> # info find.info "Finding Files" "Time" |
28 |
> |
29 |
> BTW, in programmer speak, "now plus 3 days" would be interpreted as 3 |
30 |
> days in the future...which is _not_ how find works. To try and |
31 |
> clarify: |
32 |
> |
33 |
> -mtime 2 -> files modified between 48 and 72 hours ago. |
34 |
> -mtime -2 -> files modified in the last 2 days...the period between 0 |
35 |
> and 48 hours ago. |
36 |
> -mtime +2 -> files modified more than 48 hours ago |
37 |
> |
38 |
> HTH, |
39 |
> -Richard |
40 |
|
41 |
Point taken! Thanks for the clarification, Richard! |
42 |
|
43 |
|
44 |
-- |
45 |
Best regards, |
46 |
Daniel |
47 |
|
48 |
|
49 |
-- |
50 |
gentoo-user@g.o mailing list |