Remove matching lines

Get help with installation and running here.

Moderators: DataMystic Support, Moderators, DataMystic Support, Moderators, DataMystic Support, Moderators

Post Reply
alaltaieri
Posts: 9
Joined: Wed Apr 17, 2013 9:12 am

Remove matching lines

Post 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
alaltaieri
Posts: 9
Joined: Wed Apr 17, 2013 9:12 am

Re: Remove matching lines

Post 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']
Post Reply