1. Put paterns into a file named 'patterns', one per line. 2. ./flexgrep some_file_to_search
A flex-based grep demo.