[nycbug-talk] Deleting Lots of Files.

N.J. Thomas njt at ayvali.org
Wed Jun 21 13:42:24 EDT 2006


* N.J. Thomas <njt at ayvali.org> [2006-06-21 10:56:53 -0400]:
> "-mtime -16" to get the files before June (but also see the -newer
> option).

A minor correction, for today (2006-06-21), "-mtime +21" is the correct
switch to find files before June, "-mtime -16" would get you all files
newer than 16 days ago. Sorry about the mistake.

But for something like this:

    touch -amt 200606010000.00 foo
    find . ! -newer foo

is more exact and is probably what the OP should use.

/haven't yet had my first Red Bull of the day

Thomas

-- 
N.J. Thomas
njt at ayvali.org
Etiamsi occiderit me, in ipso sperabo



More information about the talk mailing list