I have two files: in linux redhat version 6
list1.txt - this files contain 34732 words
list2.txt - this files contain 272 words
I want to remove all words from list1.txt that spears from list2.txt
what the best approach to do that ( both files include only one field )
more list1.txt
dweferf
fr
grgr
gefyh
fergtrg
ggtgg
fergth
gtg
.
.
.
more list2.txt
dweferf
fr
frgrgggb
rggtgtrgrt
fergtrg
rfergrtg
fwed4
.
.
.