$ grep -f -F $file1 $file2 > $file3 [download]
In reply to Re: Parsing for [] in a file by JavaFan in thread Parsing for [] in a file by HJ