2 ms·
I especially like the .execute() method in Groovy. Just create a String that represents a valid command, call .execute() on it, and use the .text property to ge
by mindcrime 7y ago
I especially like the .execute() method in Groovy. Just create a String that represents a valid command, call .execute() on it, and use the .text property to get the output. For example:
$groovy -e ' println "ls /".execute().text'