Of course, you could just do it in Perl.
sub line_count { my ($fname) = @_; open(my $fh, '<', $fname) or die("Unable to open file \"$fname\": $!\n"); 1 while <$fh>; return $.; }
In reply to Re: system command
by ikegami
in thread system command
by megaurav2002
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |