Understanding Here Document and Here String in Linux
Here Document (heredoc)[1] is a method for inputting <span>multi-line strings</span> in a <span>shell</span>. It allows users to directly input multiple lines of text in the command line or script without using multiple echo commands or escape characters. <span>Basic syntax:</span> [n]<<[−]word here-document-content delimiter <span><<</span> and <span>word</span> can have spaces in between <span>n</span> is a number representing … Read more