bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#23190: wc - Different output


From: Seva Adari
Subject: bug#23190: wc - Different output
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

Attachment: test.txt.gz
Description: GNU Zip compressed data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]