>ENSP00000202967 pep:known gene:ENSG00000089163
>ENSP00000282074 pep:known gene:ENSG00000152253
>ENSP00000397517 pep:known gene:ENSG00000100429
>ENSP00000216271 pep:known gene:ENSG00000100429
What I want to do is when the records have identical $3 i.e. same gene:blabla, I want to put them in a file with $3.out (P.S. along with the lines below it)
I tried grepping out $3 first separately onto a file, and then taking each line in that file as a pattern and pulling out records using awk.
Somehow I faced probs with pulling out onto $3.out