in reply to Re: Using Perl saves time....
in thread Using Perl saves time....

Why did you use -l for the ls?

He didn't use -l; he used -1, so as to list just 1 file per line, to make the counting right. Though at least some versions of ls spot when their output is being piped and infer -1 anyway.

Smylers