C:\test>wc -l bigfile 40000000 bigfile [11:29:51.26] C:\test>perl -nlE"}{say $." bigfile 40000000 [11:30:02.41] C:\test>