Grep script to filter

Hi,

Wondering if anyone could help me with a simple script to filter out multiple things from a file.

Right now I just have long lines of grep -v remove file | greg -v etc etc

What I would like to do is have grep -v <run everything in a file> tofilter

If that makes sense. Basically a file with about 15-20 lines with things I would like to filter out from the file im running grep on.

Thanks

Hi kevin,

grep -vxf file1 file2

This will give the lines from file2 which are not in file1

Regards

Ranjith

heh. that was a little easier than i thought :slight_smile:

thank you very much, does what i need.