Shebang line represents the absolute path to the groovy
executable. Shebang line must be the first line of groovy script and start with
#!.
HelloWorld.groovy
#!/usr/bin/env groovy println "Hello World"
Shebang line is understood by Linux systems and allows
scripts to be run directly from the command-line
No comments:
Post a Comment