I have a text file and I want to remove all lines containing the words: facebook
, youtube
, google
, amazon
, dropbox
, etc.
I know to delete lines containing a string with sed:
sed '/facebook/d' myfile.txt
I don't want to run this command five different times though for each string, is there a way to combine all the strings into one command?