How to create a file using shell script (heredoc)?
The TLDR answer:
If you need to use a shell script which would create a file with the dynamic
content using few variables then you can use the code below. The approach we
shall take here will use heredoc [https://en.wikipedia.org/wiki/Here_document] /
here document syntax.
cat