Delete lines from a text file that match multiple regexes on a text file
This is exactly what grep
is designed for:
grep -v -f FileB.txt FileA.txt
-f <filename>
reads regexes from the file (instead of command line)-v
reverse the match (prints non-matching lines)
Output:
43287134, string1, string2
7464, asdf, ghjk