how to delete a line that contains a word in all text files of a folder?

bash, linux

Solution

There already many similar answers. I'd like to add that if you want to match `this is a line containing a keyword` but not `this is a line containing someoneelseskeyword`, then you had better added brackets around the word:

sed -i '/\<keyword\>/d' *.txt

Problem

So, in linux, I have a folder with lots of big text files. I want to delete all the lines of these files that contain a specific keyword. Is there any easy way to do that across all files?

Original source