Aren't lines that don't end with a '\n' considered proper lines? Why doesn't an EOF qualify as a line delimiter?
In UNIX text files all lines should be terminated with '\n'.
Examples:
$ echo foo | dd bs=1 count=3 >foobar.txt 3+0 records in 3+0 records out $ cat foobar.txt foo$ ex foobar.txt "foobar.txt" [Incomplete last line] 1 line, 3 characters :q $ sed -e '1p' -ed <foobar.txt $ echo foo | sed -e '1p' -ed foo
/ Henrik Grubbström (Lysator)
Previous text:
2002-12-30 10:36: Subject: stdin->line_iterator
I'm curios as to why. Aren't lines that don't end with a '\n' considered proper lines? Why doesn't an EOF qualify as a line delimiter?
/ Peter Lundqvist (disjunkt)