I got wrong result from the wc -l
command. After a long :( checking a found the core of the problem, here is the simulation:
$ echo "line with end" > file
$ echo -n "line without end" >>file
$ wc -l file
1 file
here are two lines, but missing the last "\n". Any easy solution?
echo -n
and why you can not add\n
at the end ofecho -n
? – Kenakenafwc
disagrees. – Knar