I'm almost certain you can make that faster or shorter
I can't imagine it making a significant dent in speed for small(er) files, but -l (sh|c)ould be omitted.
Perhaps...
perl -ne 'END{ print $., $/ }' file
...or...
perl -ne 'END{ print $. }' file
--k.
In reply to Re: Re: what's this loo code? (*slurp*)
by Kanji
in thread what's this loo code?
by John M. Dlugosz
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |