Can u help this simple Unix Pattern Match 

> I have 2 ascii files.
> One file contains a record of 300 characters, and another 10 characters.
> I have to compare the first one with the second file and exclude the
> ones that match.

Take a look at egrep:

philip@joker:~/tmp% cat one
1
3
5
8
9
10
philip@joker:~/tmp% cat two
3
8
philip@joker:~/tmp% egrep -v -f two one
1
5
9
10

Can u help this simple Unix Pattern Match 

you should be able to use:

fgrep -v -f SecondFile FirstFile

to do what you want. If the files are guaranteed to be in the same order, you can also use:

comm -23 FirstFile SecondFile

Barry Margolin

documented on: 1999.10.10 Sun 16:36:14