On Thu, 7 Jul 2011 12:31:16 +0400 Andrey Sheyko <[email protected]>
wrote:

> 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:

-l
    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.

-- 
D.



Reply via email to