[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#9019: wc -l bug

From: Davide Brini
Subject: bug#9019: wc -l bug
Date: Thu, 7 Jul 2011 18:25:56 +0200

On Thu, 7 Jul 2011 12:31:16 +0400 Andrey Sheyko <address@hidden>

> Hello!
> I've found out that wc -l doen't count the last line if there is no CR in
> the end of line

That is correct. The description for -l says:

    Write to the standard output the number of <newline> characters in each
    input file.

Also keep in mind that files with a missing newline character on the last
line are, strictly speaking, not valid text files and can cause problems to
a number of text processing utilities.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]