Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 06 Jun 2005 17:07:18 -0500
From:      Paul Schmehl <pauls@utdallas.edu>
To:        Francisco Reyes <lists@natserv.com>
Cc:        FreeBSD Questions List <questions@freebsd.org>
Subject:   Re: Looking for files older than n number of days?
Message-ID:  <0D1119B615CF2856E282F6F9@utd59514.utdallas.edu>
In-Reply-To: <20050605234620.P79890@zoraida.natserv.net>
References:  <20050605215422.O79500@zoraida.natserv.net> <C1559D2543CB90EEE7006C0D@Paul-Schmehls-Computer.local> <20050605234620.P79890@zoraida.natserv.net>

next in thread | previous in thread | raw e-mail | index | archive | help
--On Sunday, June 05, 2005 23:47:44 -0400 Francisco Reyes 
<lists@natserv.com> wrote:

> On Sun, 5 Jun 2005, Paul Schmehl wrote:
>
>> Use negation.
>> find ! -n 10 blah
>
> Could not get it to work with anything like that syntax.
> For starters I don't see "-n". I see newer but that seems to compare to
> another file.. Is this something you have done in the past?
>
All I gave you was an example of how negation works, not a specific command 
for find.

Try this: find {path} ! -newer {path to file with date you want}

Or you can touch a file with the date you want.  Then use that file as the 
"key" for find to know what "! -newer" means.

Take a look at this:

<http://www.softpanorama.org/Tools/Find/find_mini_tutorial.shtml>;

There's tons of ways to do what you want.  You just need to choose one that 
you like.

Paul Schmehl (pauls@utdallas.edu)
Adjunct Information Security Officer
University of Texas at Dallas
AVIEN Founding Member
http://www.utdallas.edu/ir/security/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?0D1119B615CF2856E282F6F9>