Andrey Sheyko 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
It's the 'CR' (or NL) at the end of the line that makes it a "new line"... without that, you just have text appended to the end of the file...