remove all lines in a file containing a string from another file
问题 I'd like to remove all the lines of a file based on matching a string from another file. This is what I have used but it only deletes some: grep -vFf to_delete.csv inputfile.csv > output.csv Here are sample lines from my input file (inputfile.csv): Ata,Aqu,Ama3,Abe,0.053475,0.025,0.1,0.11275,0.1,0.15,0.83377 Ata135,Aru2,Aba301,A29,0.055525,0.025,0.1,0.082825,0.075,0.125 Ata135,Atb,Aca,Am54,0.14695,0.1,0.2,0.05255,0.025,0.075,0.8005, Adc,Aru7,Ama301,Agr84,0.002075,0,0.025,0.240075,0.2,0. My