Echoing multiline in linux terminal
There are at least three fun ways to echo multiline to a file. We are going to look at doing the output twice, the heredoc -method and writing multiline using double quotes. 1. Output twice I think this is the simplest and most intuitive method if you are familiar with linux output redirection. user@server:~/projects/blog\_content$ echo "This file is" >> multiline.txt user@server:~/projects/blog\_content$ echo "multiline" >> multiline.txt user@server:~/projects/blog\_content$ cat multiline.txt This file is multiline 2. Heredoc -method You can replace EOF with your choice of characters. It denotes the ending of your input. ...