perl -pe'}{$\=$.' filename [download]
In reply to Re: getting line count in cmd.exe by jwkrahn in thread getting line count in cmd.exe by chuckd