simple find question
try:
cd /base/directory/to/search
find . -type f -ctime -14
-14 means less than 14 days
+14 means more than 14 days
14 means exactly 14 days
you may want to use mtime instead of ctime.
Quoted 6 lines · a Special guy
all i need is to list all files less than two weeks old in a directory, recursively.
"ls" isnt of real use because i cant figure out how to conveniently sort dates in the form it displays.
but this should be right up "find"'s alley, right?
however i dont understand for example -ctime and -cmin. neither seems to find what i want (files less than 14 days old) in my tests. isnt what i want more like -cmax? or of course i can create a two week old file (i presume this can be done), and then use -cnewer?
Quoted 7 lines
basically the desired end result is to simply be able to have a "whats new in the last two weeks" listing on an ftp site.
-
To unsubscribe from this list: send the line "unsubscribe linux-admin" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
__________________________________________________________________
The NEW Netscape 7.0 browser is now available. Upgrade now! http://channels.netscape.com/ns/browsers/download.jsp
Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.com/
-
To unsubscribe from this list: send the line "unsubscribe linux-admin" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html