[Tfug] When RTFM is not enough
tfug@tfug.org
tfug@tfug.org
Mon Jul 8 12:25:01 2002
On Mon, 8 Jul 2002, Bowie J. Poag wrote:
> > The solution could be a script such as this:
>
> (..bloated perl script deleted..)
>
> No. You need to read the manpage for du, and ls. Its clear you havent. Both
> commands are thick with formatting options, and sorting options. From there,
> its a trivial matter to parse the results with awk or grep.
No, its clear _you_ havn't read them. If you had, you'd know that there
are no options to do what that script was doing.
>
> > So perhaps find *is* the better way in this case afterall?
>
> Your perl script was slow, poorly implemented, buggy as hell, and continues
> to eat larger and larger amount of ram while running. I Ctrl-C'ed it after
> it consumed about 40MB... Congratulations--You've succeeded in building
> something worse than "find".
I know my perl script was slow. If I wrote to the file as it was going,
it'd take less memory, but I didn't for some reason. But yes, that script
was inadequate, but it was the only solution I've found to replace find's
functionality (ie, searching by permissions as opposed to names, etc).
So far you've provided no solutions but have managed to insult everyone
trying to do so. If you dislike find, can you give any possible solution
to match everything that find can do? A database consisting of all the
info that find can search on, for every file in a filesystem, would take
up a huge amount of space and would take forever to generate.
- Yan