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