2017-07-27 76 views

回答

2

你可以這樣做,並在線評論。

//Change log file name in below statement 
def lines = new File('/tmp/test123.txt').readLines() 
//Get the list of matching lines 
def result = lines.findAll { it.contains('FOUND') } 
println result*.toString() 
相關問題