May I know what does it mean when a '%' appears at the end of the output when I execute my code?
For example:
Hello,World%
Added:
I'm using Mac Os X iTerm2 zsh shell.
My code
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.
Thank you.
%
your shell prompt? Did you print a newline at the end of your output? – Greg Hewgill Aug 10 '16 at 21:45echo 'Hello,World' | tr -d "\n"
or, better,echo -n "Hello,World"
orprintf "Hello,World"
. And yes, the%
is your shell prompt. I don't see how using vim is relevant. – Keith Thompson Aug 10 '16 at 22:01