The redirection there is on purpose, without the < there, you get a different answer.$line_count = `wc -l < $file`;
In reply to Re: How do I find the total number of lines in a file?
by JavaFan
in thread How do I find the total number of lines in a file?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |