[Tfug] When RTFM is not enough

Bowie J. Poag tfug@tfug.org
Mon Jul 8 00:53:01 2002


> 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.

> 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".

Yeesh.

Bowie