2 deleted 65 characters in body; edited tags
source | link

I am trying to remove matching lines from one text file using another. For example, fired.txt contains:

Jason
Candice
Brent
Tom

And I want to remove matching lines from workers.txt, which currently looks like this:

Andrew
Tommy
Peter
Jason
Brent
Sasha
Tom
Candice

So, in the end, it would remove the entire line if it matches exactly, so it would look like this:

Andrew
Tommy
Peter
Sasha

I am using macOS Sierra, btw.

If you need more clarification, please kindly ask.

Thanks !!

I am trying to remove matching lines from one text file using another. For example, fired.txt contains:

Jason
Candice
Brent
Tom

And I want to remove matching lines from workers.txt, which currently looks like this:

Andrew
Tommy
Peter
Jason
Brent
Sasha
Tom
Candice

So, in the end, it would remove the entire line if it matches exactly, so it would look like this:

Andrew
Tommy
Peter
Sasha

I am using macOS Sierra, btw.

If you need more clarification, please kindly ask.

Thanks !!

I am trying to remove matching lines from one text file using another. For example, fired.txt contains:

Jason
Candice
Brent
Tom

And I want to remove matching lines from workers.txt, which currently looks like this:

Andrew
Tommy
Peter
Jason
Brent
Sasha
Tom
Candice

So, in the end, it would remove the entire line if it matches exactly, so it would look like this:

Andrew
Tommy
Peter
Sasha

I am using macOS Sierra, btw.

1
source | link

How do I remove matching lines from one text file using another?

I am trying to remove matching lines from one text file using another. For example, fired.txt contains:

Jason
Candice
Brent
Tom

And I want to remove matching lines from workers.txt, which currently looks like this:

Andrew
Tommy
Peter
Jason
Brent
Sasha
Tom
Candice

So, in the end, it would remove the entire line if it matches exactly, so it would look like this:

Andrew
Tommy
Peter
Sasha

I am using macOS Sierra, btw.

If you need more clarification, please kindly ask.

Thanks !!