Warning: This is the manual of the legacy Guile 2.0 series. You may want to read the manual of the current stable series instead.
Next: Linking Guile into Programs, Previous: Running Guile Interactively, Up: Hello Guile! [Contents][Index]
Like AWK, Perl, or any shell, Guile can interpret script files. A Guile script is simply a file of Scheme code with some extra information at the beginning which tells the operating system how to invoke Guile, and then tells Guile how to handle the Scheme code.
Here is a trivial Guile script. See Guile Scripting, for more details.
#!/usr/local/bin/guile -s !# (display "Hello, world!") (newline)