I'm learning python, and then i have the following difficulties. The file i want to be cleaned is an .csv file. The file that contains the words that have to be removed from the .csv file is an .txt The .txt file is a list of domain names:
domain.com
domain2.com
domain3.com
The .csv file is a config file just like this:
domain.com;8;Started;C:\inetpub\wwwroot\d\domain.com;"http *:80:www.domain.com"
if the .txt file contains "domain.com" i want the complete line above to be removed. I would be realy gratefully if some python ninja could fix this.(or in bash?)
grepwould suffice. Seeman grep.