Why is newline at the end relevant?
I remember not having a newline breaks some tools... but why? It can't be because of unix philosophy!?
I remember not having a newline breaks some tools... but why? It can't be because of unix philosophy!?
POSIX defines it more succinctly than I do: A text file contains one or more "lines" and every "line" is terminated by a "newline."
https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1...
https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1...
Unix has ALWAYS defined a line of text as being terminated by a newline. The last line in the file is not an exception.