i changed echo -q to echo -a

you edit somebodys code then tell them it does not work?
strange, because if you used echo -a and not .echo -q it would just echo the total number of files in the dir and all sub dirs...
.echo -q is used when you dont want to display something, he used that so you didnt see the number of files in the dir, though it should still return the total bytes of all files, you will see the total files first via the echo -a. maybe you should use the original code. smile