This question already has an answer here:
May I know what does it mean when a '%' appears at the end of the output when I execute my code?
I'm using Mac Os X iTerm2 zsh shell.
echo 'Hello,World' | tr "\n" "\000"
I added the tr command to get rid of the newline at the end.
I'm using vim so I want to get the output without the newline just like if I'm using emacs.