in reply to Re^6: hackerrank.com question
in thread hackerrank.com question

Other than that, the way to resolve this is to use echo -n '<stuff>' > filename.

That gives results like pasting with no explicit newline at the end used to in vi, and it's much less work.