I am new to linuxLinux, shell scripting, and I'm trying to learn the fundamentals. I am currently on the redirection chapter, where here document is-documents are being explained. I could not really understand how the code below works in conjunction with catthe cat command. If some one can please tell me?
cat << EOF line1 line2 line3 EOF I very well understand how << EOF works. KeywordThe keyword denotes the end of input. My question is; catcat takes filename(s) as input stream; so that it can print its content on output stream. How does above work internally? We are not specifying filename anywhere. Does the shell create internally some temptemporary file and give it to cat? I hope my question is clear.