I am trying to append a text to the existing file in Linux. Currently, instead of appending it to the existing line, it appends content to the next line. How can I append to the same line /or a specific line?
echo 'He' > /tmp/newfile
echo 'llo World' >> /tmp/newfile
the output of the file comes in two-line like the one below
He
llo World
how can I bring output like the below one
Hello World
How to bring the appending text to the same /specific line?