I have a file containing a list of words. I want to remove all occurrences of all the words in this file from a big text file.Example:File 1queenkingText file sampleBoth the king and queen are monarchs. Will the queen live? Queen, it is!This is what I have tried:sed -i 's/queen/ /g' page.txtsed -i 's/Queen/ /g' page.txtOutputBoth the and are monarchs. Will the live? , it is!The list of words I have is big (over 50000 words). How can I do this without having to specify the pattern in the command line?
How to delete all occurrences of a list of words from a text file?
text processing;sed;grep;text