What does this print?
printf 'a\nb\nc' | wc -l
2315
wc -l counts newline characters, and the last line has no trailing newline, so only 2 are counted.printf 'a\nb\nc' | wc -l
2315wc -l counts newline characters, and the last line has no trailing newline, so only 2 are counted.