HERE_DOCUMENT contains examples which illustrate the use of "here documents".
A "here document" is a method for creating a small file as part of a job script. This is usually a convenience for dealing with situations in which a single job script is desired, but where the job script from time to time needs to "feed" small input files to other commands it invokes. A "here document" is a method of creating such a file by listing its contents as part of the script.
The computer code and data files described and made available on this web page are distributed under the GNU LGPL license.
HERE_COMPILE is an example in which a tiny FORTRAN90 program is created as a "here document" using the cat command, then compiled and executed.
You can go up one level to the EXAMPLES page.