If I'm in terminal and I write some basic string to a file, is there a way to continually append to that file using echo?
For instance, echo 'hello' > file will put 'hello' into that file, but what if I now want to append ' world' to file? I know that if I do echo ' world', it'll overwrite the first string I wrote into file. Is there any += operator I can use in bash?
EDIT: Nevermind, I can append using >>. Is it possible to append to the same line instead of to a new line?