I have fileA:
Joey.smith /my/path/to/here here
bill@smith /my/path/to/there there
John@smith /my/path/to/anywhere anywhere
I have fileB:
bill@smith
I want to end with fileC:
Joey.smith /my/path/to/here here
John@smith /my/path/to/anywhere anywhere
Thus remove B from A, the whole line.
I've tried:
grep -E -f FileB FileA >FileC
I've tried various metacharacters
^.*$
in FileB (patternlist) for the regex but I always end up with no lines or all the lines. What is the correct way?