Remove matching lines
Posted: Wed Apr 17, 2013 9:43 am
Hi there, I just signed up on this forum and I see there are a lot of great guys that can help noobs(like me).
I'm searching for a filter that text pipe pro may have it but cannot find it. It's a bout removing some lines when comparing two files.
So, I have two large text document files. I want to compare file 2 to file 1 and remove lines that contain some words. I mean some words that appear in some of the lines of file 1(base file). When those words are matching I want the entire line to be deleted.
Example:
Lines in file 1(base file)
dog
car
house
Lines in document 2:
I have a big house.
My car is nice.
I'm living in a small house.
I am a student.
I'm not a smart person.
We are all friends.
After comparing file 2 to file 1 I want the results to remain this:
I am a student.
I'm not a smart person.
We are all friends.
Anyone know how I can do this ?
Thanks
I'm searching for a filter that text pipe pro may have it but cannot find it. It's a bout removing some lines when comparing two files.
So, I have two large text document files. I want to compare file 2 to file 1 and remove lines that contain some words. I mean some words that appear in some of the lines of file 1(base file). When those words are matching I want the entire line to be deleted.
Example:
Lines in file 1(base file)
dog
car
house
Lines in document 2:
I have a big house.
My car is nice.
I'm living in a small house.
I am a student.
I'm not a smart person.
We are all friends.
After comparing file 2 to file 1 I want the results to remain this:
I am a student.
I'm not a smart person.
We are all friends.
Anyone know how I can do this ?
Thanks