title: Script to read text file line by line and search for a particular word and copy all the lines related to that word to a remote directory
body: <p>I have a text file that contains a large number of log list. </p>
  
  <p>I am trying to use a groovy script to read the text file line by line and search for a particular word called DBC. That word "DBC" should be copied to a remote file directory?</p>