Sri*_*ath 4 unix groovy
我需要ls -l在groovy中使用unix命令显示文件的名称,大小,日期.
ls -l
我们如何ls -l在groovy中查看信息?
提前致谢.
Bel*_*lla 7
"ls -l".execute().text
应该这样做
Mic*_*rdt 6
def list = 'ls -l'.execute().text list.eachLine{ // code goes here }
归档时间:
15 年,5 月 前
查看次数:
4626 次
最近记录:
15 年,4 月 前