4 ms·
$ echo -n "A" | wc --lines 0
by mbrubeck 3y ago
$ echo -n "A" | wc --lines
0
- keybored 3y agoYep. since wc(1) apparently strictly adheres to what a newline-terminated text file is. This is why plaintext files should end with a newline. :) https://stackoverflow.com/questions/729692/why-should-text-files-end-with-a-newline/25322168#25322168 https://stackoverflow.com/questions/729692/why-should-text-f...