How to count lines in a text file ?
Alex Martelli
aleaxit at yahoo.com
Thu Sep 23 17:28:50 EDT 2004
Andrew Dalke <adalke at mindspring.com> wrote:
> > I suspect somebody who asks the subject question wants to reproduce wc's
> > counting behavior.
>
> Really? I was actually surprised at what wc does. I didn't
> realize it only did a "\n" character count. The other programs
Ah well -- maybe it's just me, 25+ years of either using Unix or pining
for it (when I had to use VMS, VM/SP, Windows, etc, etc) must have left
their mark.
Alex
More information about the Python-list
mailing list