If you want to run a Scala script as a Unix or Linux shell script - such as hello.sh - write your script like this: #!/bin/sh exec scala "$0" "$@" !# object HelloWorld { def main(args: Array[String]) { println("Hello, world! " + args.toList) }} HelloWorld.main(args)
Collection
[
|
...
]