[Tfug] When RTFM is not enough

Brian Murphy tfug@tfug.org
Mon Jul 8 14:05:01 2002


On Mon, Jul 08, 2002 at 05:22:59AM -0700, Bowie J. Poag wrote:
> > Ok, its shutup time.  Every command has its place.  Even though you don't
> > know how to use it well, find makes some tasks easy.  Suppose you want to
> > make a report of all setuid root or setgid group 241 files?  Don't tell me
> > about /usr/local, because we know it was protected at the time.  Also
> > include the creation and last modification dates (M D Y) in your report.
> 
> First of all, listing with setuid/gid feilds AND ctime/atime information are
> BOTH supported in ls! What you've asked for is as simple as adding the
> appropriate ls flags in the foor loop, so the file can be parsed with grep
> according to those feilds.

Then do it.  I'm curious to see your answer and run it against the find
command I showed you.  You can pettifog the issue all you want, but until
you put code on the table, you're full of shit about ls being faster.

IOW, Your bluff has been called, gimpboy.

Brian