Subject: Re: stat(1) and find(1)
To: None <email@example.com>
From: Luke Mewburn <lukem@NetBSD.org>
Date: 07/22/2003 23:40:39
On Tue, Jul 22, 2003 at 01:37:01PM +0000, Christos Zoulas wrote:
| In article <20030722012022.A14189@noc.untraceable.net>,
| Andrew Brown <firstname.lastname@example.org> wrote:
| >i was thinking of of rearranging stat(1)'s source code a little so
| >that other programs could include the formatting code with very little
| >one such candidate would be find(1), so that you could do things like:
| > find . -type f -stat "%m %N" | sort -n | tail -5
| >for example, and find the five newest files under a given directory.
| >there would, of course, be a -stat0 operator, and these would satisfy
| >the "print something by default" requirement that find asserts.
| >it's terribly non-standard, of course, but it might also terribly
| >comments? opinions? criticisms? flames?
| I like it... What's next -lstat?
Wouldn't that be controlled by -H, -L, -P, and -h ?
(BTW: stat(1) would really be like "find -lstat", given the former's