2017-07-27 1 views

Répondre

2

Vous pourriez faire quelque chose comme ceci et commenter en ligne.

//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()