- 论坛徽章:
- 0
|
本帖最后由 ottchen 于 2014-12-13 17:23 编辑
大家好!我刚解除Linux,花了一个下午的时间才明白Grep命令的强大,但是还有很多不懂。如下:
Query= OTU_527
Length=134
Score E
Sequences producing significant alignments: (Bits) Value
pdb|4UQ4|1 Chain 1, Mammalian 80s Hcv-ires Initiation Complex... 248 1e-62
pdb|4W23|2 Chain 2, Structure Of The 80s Mammalian Ribosome B... 248 1e-62
ref|XM_008252668.1| PREDICTED: Oryctolagus cuniculus serine/a... 248 1e-62
ref|NR_046233.2| Mus musculus 45S pre-ribosomal RNA (Rn45s), ... 248 1e-62
gb|KC876030.1| Homo sapiens clone LA13_165F6 sequence 248 1e-62
gb|KC876029.1| Homo sapiens clone LA14_101B3 sequence 248 1e-62
gb|KC876028.1| Homo sapiens clone LA15_25H3 sequence 248 1e-62
ref|XR_233610.1| PREDICTED: Bos taurus uncharacterized LOC101... 248 1e-62
tpg|BK000964.3| TPA: Mus musculus ribosomal DNA, complete rep... 248 1e-62
ref|XM_004474322.1| PREDICTED: Dasypus novemcinctus translati... 248 1e-62
pdb|3J3D|2 Chain 2, Structure Of The H. Sapiens 40s Rrna And ... 248 1e-62
gb|JF894380.1| Crocuta crocuta isolate CC8 18S ribosomal RNA ... 248 1e-62
gb|JQ247698.1| Mus musculus cell-line Neuro-2a 18S ribosomal ... 248 1e-62
ref|NR_046261.1| Sus scrofa 18S ribosomal
Query= OTU_149
Length=131
Score E
Sequences producing significant alignments: (Bits) Value
gb|KJ763281.1| Uncultured eukaryote clone SGUH718 18S ribosom... 215 1e-52
gb|KJ763240.1| Uncultured eukaryote clone SGUH649 18S ribosom... 215 1e-52
gb|KJ763193.1| Uncultured eukaryote clone SGUH584 18S ribosom... 215 1e-52
gb|KJ762994.1| Uncultured eukaryote clone SGUH1374 18S riboso... 215 1e-52
gb|JN048122.1| Uncultured eukaryote clone BF9_20C1E 18S ribos... 169 1e-38
emb|FR874449.1| uncultured marine picoeukaryote partial 18S r... 169 1e-38
gb|DQ314819.1| Uncultured marine eukaryote clone NW617.36 18S... 169 1e-38
gb|DQ314818.1| Uncultured marine eukaryote clone NOR46.02 18S... 169 1e-38
gb|DQ314817.1| Uncultured marine eukaryote clone NOR26.21 18S... 169 1e-38
gb|DQ369016.1| Uncultured marine eukaryote clone UEPACAHp3 18... 163 5e-37
gb|DQ369015.1| Uncultured marine eukaryote clone UEPACLp3 18S... 163 5e-37
gb|EU371163.1| Uncultured marine eukaryote clone NPK2_123 18S... 150
我想要的输出结果是:
Query= OTU_527
pdb|4UQ4|1 Chain 1, Mammalian 80s Hcv-ires Initiation Complex... 248 1e-62
Query= OTU_149
gb|KJ763281.1| Uncultured eukaryote clone SGUH718 18S ribosom... 215 1e-52
如果使用grep -A 8 OTU_ /home/*.txt 就会把中间6行的无用信息也抓出来。
所以,我的问题是,?如何grep一个文件中含有关键词“OTU_”之后指定第N行的信息。
谢谢! |
|