`echo` appends a newline, unless you tell it not to, by putting `-n` first or `\c` at the end, or putting `-e` first _and_ `\c` at the end or... you really don't want to know all the varieties of echo. Use `printf moo > cow` and you'll have a file with zero lines.