in reply to Poorly written script

Is the grep -T needed? It has to open each and every user or auction file, and read enough of them to guess whether it's a text or binary file. If you can determine this from the filename alone, you would be much better off.