Thanks for replying.

I agree that find should not modify the filesystem, unless ...
And indeed, my intent was to implement the extra functionality, and
could not do this in C, because I am not too familiar with C and find as
it is now does not permit to do it otherwise, without creating temporary
files.

I have looked at bug #11668 at savannah and it looks like others have a
similar solution, using a syntax like '-[a|c|m]time [|-|+]"date spec"',
which implements the same concept to find files with a time after and/or
before an exactly given time.

Thanks!

Arnoud

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of James Youngman
Sent: Monday, March 06, 2006 22:51
To: Witt, Arnoud
Cc: [email protected]
Subject: Re: extended find command

It's an interesting concept, but find should not itself modify the
filesystem unless the user has explicitly requested this (e.g. via
-delete, -exec etc.).  Your script also leaks the two temporary files.

I recall that http://savannah.gnu.org/ also has a similar feature
request for findutils.  Perhaps you might take a look at that and find a
way to implement this in C (i.e. as a patch to find) which doesn't
modify the filesystem.

Thanks,
James.


_______________________________________________
Bug-findutils mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-findutils

Reply via email to