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
In reply to Re^2: Using Perl saves time....
by Smylers
in thread Using Perl saves time....
by szabgab
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |