- 论坛徽章:
- 307
|
本帖最后由 sunzhiguolu 于 2016-07-04 20:56 编辑
试下,- perl -F/Name=/ -nle 'if(@ARGV){$h{$_}=1;next}print if(do{($k)=$F[1]=~/([^;]+)/;$h{$k}})' a b
复制代码 NC_000006.12 Gnomon CDS 99349107 99349213 . - 0 ID=cds32886;Parent=rna48129;Dbxref=GeneID:84553,Genbank:XP_006715644.1,HGNC:HGNC:20742,HPRD:12866;Name=XP_006715644.1;gbkey=CDS;gene=FAXC;product=failed axon connections homolog isoform X1;protein_id=XP_006715644.1
NC_000006.12 Gnomon CDS 99342898 99343033 . - 1 ID=cds32886;Parent=rna48129;Dbxref=GeneID:84553,Genbank:XP_006715644.1,HGNC:HGNC:20742,HPRD:12866;Name=XP_006715644.1;gbkey=CDS;gene=FAXC;product=failed axon connections homolog isoform X1;protein_id=XP_006715644.1
NC_000006.12 Gnomon CDS 99333351 99333547 . - 0 ID=cds32886;Parent=rna48129;Dbxref=GeneID:84553,Genbank:XP_006715644.1,HGNC:HGNC:20742,HPRD:12866;Name=XP_006715644.1;gbkey=CDS;gene=FAXC;product=failed axon connections homolog isoform X1;protein_id=XP_006715644.1
NC_000006.12 Gnomon CDS 99323444 99323667 . - 1 ID=cds32886;Parent=rna48129;Dbxref=GeneID:84553,Genbank:XP_006715644.1,HGNC:HGNC:20742,HPRD:12866;Name=XP_006715644.1;gbkey=CDS;gene=FAXC;product=failed axon connections homolog isoform X1;protein_id=XP_006715644.1
NC_000006.12 Gnomon CDS 99291704 99291820 . - 2 ID=cds32886;Parent=rna48129;Dbxref=GeneID:84553,Genbank:XP_006715644.1,HGNC:HGNC:20742,HPRD:12866;Name=XP_006715644.1;gbkey=CDS;gene=FAXC;product=failed axon connections homolog isoform X1;protein_id=XP_006715644.1
NC_000006.12 Gnomon CDS 99281164 99281453 . - 2 ID=cds32886;Parent=rna48129;Dbxref=GeneID:84553,Genbank:XP_006715644.1,HGNC:HGNC:20742,HPRD:12866;Name=XP_006715644.1;gbkey=CDS;gene=FAXC;product=failed axon connections homolog isoform X1;protein_id=XP_006715644.1
|
|