Sunday, 13 January 2019

Groovy: Shebang line


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

Previous                                                 Next                                                 Home

No comments:

Post a Comment