[Tfug] When RTFM is not enough
Bowie J. Poag
tfug@tfug.org
Mon Jul 8 19:51:15 2002
> 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.
Your script does nothing more than build an impossibly large scalar in Perl
representing a list of files, one concatenated onto the other in an utter
circus of stupidity that eats more memory the longer it runs. When it
finishes, it attempts to echo this variable, several hundred megs in size, to
a file...using a print statement!
Are you completely retarded, or just new to Perl?
> 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).
ls -l | grep "^-rw-r--r--" // Or whatever permissions you wanna use.
Any other Unix 101 questions you'de like answered?
> 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.
Not really. Couple minutes and about a meg worth of storage..No much more time
or energy than it would take find to do the same.
Anyway, if you'de like for me to point out where and how badly your Perl code
sucked, just ask.
Bowie