I have two files f1.txt and f2.txt. I want to able to take remove rows within File 1 (f1.txt) if its first column has a matching entry in File2 (f2.txt). f2 has only 1 column per line where as each row of f.txt will have two or more columns. Here is an example:
cat f1.txt
1, 10, 20, 30, 40, 50, 60, 70, 80, 90, 1000
2, 100, 200, 300, 400
3, 100, 2000, 3000
4, 400, 500
5, 500, 600, 700, 800, 900, 1000
cat f2. txt
2
4
Here is the desired output:
1, 10, 20, 30, 40
3, 100, 2000, 3000, 400
5, 500, 600, 700, 800