I am not clear on best practice to execute unix commands from my scala based script.
A typical scala script is here
#!/bin/sh
exec scala "$0" "$0" "$@"
!#
println("args length is ", args.length)
### want to list all files in the underlying folder
val resultSet = "ls -la"????
I checked a number of posts but nothing clearly outlines a working script which can execute a unix command from scala script and perform some transformations.