Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 17 Nov 2000 14:18:30 -0800 (PST)
From:      Oliver Crow <ocrow@skymind.com>
To:        Philip Hallstrom <philip@adhesivemedia.com>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: Need a "find / -newer date_string" type of program...
Message-ID:  <Pine.BSF.4.21.0011171402560.11494-100000@iguana.skymind.com>
In-Reply-To: <Pine.BSF.4.21.0011171358590.1362-100000@oddjob.adhesivemedia.com>

next in thread | previous in thread | raw e-mail | index | archive | help


On Fri, 17 Nov 2000, Philip Hallstrom wrote:

> 	Does anyone know of a "find"-like program that has a "find all
> files newer than a specified date" option?  This would be very similar to
> find's -newer file "newer than file" option, but I want to specify a date
> instead of a file.

You can use 'touch' to turn a date into a file (so to speak).
To find files newer than yesterday, for example:

touch -t 200011160000 /tmp/timefile 
find . -newer /tmp/timefile
rm /tmp/timefile


Oliver



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0011171402560.11494-100000>