in reply to Re: Count file lines in a directory treein thread Count file lines in a directory tree
{ local $/ = \131072; $lines += tr/\n// while <inFile>; $lines++ if not /\n\z/; } [download]
Makeshifts last the longest.