I have two files, file1.txt contains strings separated by commas:
1.1.1.1,string1,comment1
7.7.7.7,string3,comment3
2.2.2.2,string2,comment2
88.88.88.88,string4,comment4
999.999,999,999,string5,comment5
The second file, file2.txt, contains strings that can appear in the first column of file1.txt. I need to remove the whole row in file1.txt if its first column's string appears in file2.txt. Please note that I do not want to change th original file, but I want to put the output in a new file.
file1.txtspecifically, then probably something likegrep -vFf file2.txt file1.txt > newfileshould do