From: biblio93 on 10 Jul 2010 10:25 Hi #find . -name "*.trc" -mtime -2 -print | wc -l minus of 2 days old #find . -name "*.trc" -mtime 2 -print | wc -l just 2 days old #find . -name "*.trc" -mtime +2 -print | wc -l more two days old Regards
From: Geoff Clare on 12 Jul 2010 08:36 Stu wrote: > FYI, I always check the man page first before posting, I would not > waste people's time. That's why > I made the post/ > > There was not clear definition of what the "-", "+" or no sign before > the n paramter actually does. > > man find on AIX 5.3 box > > -mtime n [snip] > > I know you been a big help to me before in the past and I do > appreciate your vast knowlege of the shell > and its commands but sometimes all the answers are not in the > documentation. It will be there somewhere; you're just looking in the wrong place in the man page. The +/- convention is common to all of the find primaries that deal with numeric quantities (time, size, number of links, etc.). Instead of repeating an explanation of it in the description of every primary to which it applies, it will be explained once somewhere before or after the descriptions of the individual primaries. -- Geoff Clare <netnews(a)gclare.org.uk>
From: Alan Curry on 12 Jul 2010 18:28 In article <2serg7-jol.ln1(a)leafnode-msgid.gclare.org.uk>, Geoff Clare <geoff(a)clare.See-My-Signature.invalid> wrote: > >The +/- convention is common to all of the find primaries that >deal with numeric quantities (time, size, number of links, etc.). >Instead of repeating an explanation of it in the description of >every primary to which it applies, it will be explained once >somewhere before or after the descriptions of the individual >primaries. Note: because of idiotic rounding, a timestamp that's 47 hours old is considered "exactly" 1 day old by find's comparisons. If you want to select files that are at least 1 day old, you must use find -mtime +0 instead of the obvious -mtime +1 -- Alan Curry
First
|
Prev
|
Pages: 1 2 Prev: Team Red Bull Hats ( www.nike-black.com ) Next: I just don't understand find -prune |