which means it reads the file from stdin. Downside is that it uses a shell process for the redirection, so it is slow if you have a large number of files. The alternative is to open the file yourself and count the lines. Alternatively split off the filename from the wc output before using it as a numeric.qx/wc -l < $file/;
In reply to Re: Help with pattern matching and calling wc -l
by cdarke
in thread Help with pattern matching and calling wc -l
by AWallBuilder
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |