groovy Hello world Shebang (linux)


Example

Given a hello.groovy file with content:

#!/usr/bin/env groovy
println "Hello world"

Can be executed from the command line if given execution permission as

$ ./hello.groovy