Remove data from grep command using the pattern in the file

view story

http://www.unix.com – Hi, I writing a shell program to remove the data from output of the find which matches a list in a file I am using the below find command to get the list of files x=`find . -name test*.dat` the output of the find command is as follows test1.dat test2.dat test3.dat test4.dat test5.dat i have a file list.txt with the below search pattern test4 test1 i need to remove the test4.dat and test1.dat from the variable x based on the data which is present in the file . Kindly suggest me how to achive the same. thanks pals (HowTos)