in reply to Parsing for [] in a file

It seems that a shell one liner ought to do:
$ grep -f -F $file1 $file2 > $file3