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
But the result is 95 when using
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.
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:

wc -l

Asked by Bioinfotec
(1 rep)
Mar 8, 2024, 05:20 AM
Last activity: Mar 8, 2024, 07:12 AM
Last activity: Mar 8, 2024, 07:12 AM