And (similar to QM's golf reply:perl -le 'open FILE, "/etc/passwd"; @_=<FILE>; print $.'
perl -lne 'END{print $.}' /etc/passwd
In reply to Re^2: Count number of lines in a text file
by davidrw
in thread Count number of lines in a text file
by Scott7477
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |