ちょっと備忘録
groovy - Execute a command in LINUX using java and fetch the output - Stack Overflow
You cannot do pipes or redirects using String.execute(). This doesn't work in Java, so it doesn't work in Groovy either...
javaのProcessBuilderだとパイプは使えないのか…