I hope you realise that I was aware of that. :-)
This snippet's only real value is as a mild curiosity. When I first posted it here I wrote: "There are many ways of doing this and most of them are better".
If I really wanted a line count I would use one of the following in this order of preference:
--wc -l file awk 'END{print NR}' file perl -nle 'END{print $.}' file
In reply to Re: Re: what's this loo code? (*slurp*)
by jmcnamara
in thread what's this loo code?
by John M. Dlugosz
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |