In linux, how do I do something like
echo 'hello world' > log.txt
but instead of overwriting the contents of log.txt, it appends to the end of of log.txt?
In linux, how do I do something like
echo 'hello world' > log.txt
but instead of overwriting the contents of log.txt, it appends to the end of of log.txt?
Try:
In place of:
In Linux you can also use the useful HERE TAG for multiline append :
Linux shell's are more more powerful than windows command prompt! ;)
echo 'hello world' >> log.txt