Subject: wc - Different output

From: Seva Adari <[email-masked]>
Date: Fri, 1 Apr 2016 18:02:00 -0400

Hello,

I am not sure if this a bug or expected behavior! Here is different output
from each run variation of wc invocation:
    wc -l test.txt                                         Output: 20
    awk '{print $0}' /tmp/test.txt | wc -l       Output: 21
    cut /tmp/test.txt -f1 | wc -l                    Output: 21

Similarly, when I read file from a python program I get 21 line count.

File, test.txt (attached here with) could be missing last "new line".

Thanks
Seva