Sample Header Ad - 728x90

When using 'wc \-l' to count the number of file lines, the result is less one

0 votes
0 answers
54 views
I want to count the number of file lines, so i use the command wc -l file. However, I notice that the result is incorrect which one less than the real number of lines. For example, the number of lines is 96: enter image description here But the result is 95 when using wc -lenter image description here So what's wrong with the command and is there any other method better to count the number of lines? By the way, my Linux distribution is RedHat and the shell is bash.
Asked by Bioinfotec (1 rep)
Mar 8, 2024, 05:20 AM
Last activity: Mar 8, 2024, 07:12 AM