title: Copy a line containing a string to another file in shell script
body: <p>I am new to shell scripting and I am trying to figure out the following.</p>
  
  <p>How to search a file for a line containing a particular string and copy that line to a new file if the line is present?</p>