When is that behaviour useful?
/ Mirar
Previous text:
2002-12-30 10:44: Subject: stdin->line_iterator
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)