comparing two files based on column 2nd of file1. if $3 of file1 is <0 and $3 of file2 is 'n' then print of row file2, else if $3 of file1 is >0 and $3 of file2 is 'p' then print of row file2 else null print.

file1

```
1;  a; -16;
2;  b; -3;
3;  c; -4; 
4;  d;  5;

```

file2

```
1; a;  n;
2; b;  n;
3; c;  p;
4; d;  p;
5; e;  p;

```

output look like:

```
1; a; n;
2; b; n;
4; d; p; 

```