title: Groovy find specific word in a text file
body: <p>i'm using soapui for web service test and i want to find a specific word in my response file which is text file.
  i found codes for find and replace but i want only find and display some specific word from my text file.
  i tried to modify this code and i need some help please.
  suppose i have a text file with Hello world and i want to find only "world" and create anothe with only "word"</p>
  
  <pre><code>def copy(source, dest, Closure replaceText){
      dest.write(find(source.text))
  }
  
  def source = new File('source.txt') //Hello World
  find(source){
      it.findAll ('World')
  } 
  </code></pre>