Make 2 files
file1 the list of the models you want
file2 the dump (model names only) of the script you made
And compare with a dump of your source file (XML?) <file3 compare file1 and file3
then in a terminal
grep -f file1 file2
see
https://stackoverflow.com/questions/...mmand-in-linux