I have two text files each with 3 fields. I need to get the lines with the same value on the third field. The 3rd field value is unique in each file. Example:

file1:

> 
> 1 John 300  
> 
>  2 Eli 200  
> 
>  3 Chris 100  
> 
>  4 Ann 600
> 
> 
> 

file2:

> 
> 6 Kevin 250  
> 
>  7 Nancy 300  
> 
>  8 John 100 
> 
> 
> 

output: 

> 
> 1 John 300  
> 
>  7 Nancy 300  
> 
>  3 Chris 100  
> 
>  8 John 100 
> 
> 
> 

When I use the following command:

```
cat file1 file2 | sort -k 3 | uniq -c -f 2 

```

I get only one row from an input file with the duplicate value. I need both!