I thought that maybe grep -v "<ignore file with this text>" $(ls)
might work, but it ends up returning every single line within each file that does not match the text. What I want is for the file to be ignored if it contains any number of matches. As follows
Input
file1<-- matches
file2
file3<-- matches
file4<-- matches
file5
Output
file2
file5