1. read a log file 2. search the logfile.txt for a specific string, in this case the string "TWO" 3. extract record that contains the string "TWO" from log file into another file