Page 1 of 1

Remove matching lines

Posted: Wed Apr 17, 2013 9:43 am
by alaltaieri
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

Re: Remove matching lines

Posted: Wed Apr 17, 2013 10:22 am
by alaltaieri
Never mind.
I managed to read the sticky from this forum and I've found out how to filter the words.

Chose EasyPattern and apply this filter:

['dog' or 'car' or 'house']