# cat helloworld
#groovy helloworld 1 3
Hello world
Argument: 1
Argument: 3
# groovy -e "println 'Hello Bob'"
# grep -i ^groov /usr/share/dict/words | groovy -p -e 'line.toUpperCase()'
# groovysh
printGroovy Shell (2.1.6, JVM: 1.7.0_15)
Type 'help' or '\h' for help.
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
groovy:000>
groovy:000> println(:
groovy:000>
groovy:000> println("aa");
aa
#!/usr/bin/env groovy
println("Hello world")
for (a in this.args) {
println("Argument: " + a)
}
#groovy helloworld 1 3
Hello world
Argument: 1
Argument: 3
# groovy -e "println 'Hello Bob'"
# grep -i ^groov /usr/share/dict/words | groovy -p -e 'line.toUpperCase()'
# groovysh
printGroovy Shell (2.1.6, JVM: 1.7.0_15)
Type 'help' or '\h' for help.
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
groovy:000>
groovy:000> println(:
groovy:000>
groovy:000> println("aa");
aa