1
如何使用grep过滤掉以任何关键字开头的行?
我有一个大的文件(化学品数据库),我需要显示只有头记录,其被定义为不启动线:ATOM,CONNECT,HETATM,TER,或END。我应该grep用来做这个。这是文件的示例(整个文件在此处): HEADER TRANSFERASE 15-OCT-12 4HKD TITLE CRYSTAL STRUCTURE OF HUMAN MST2 SARAH DOMAIN COMPND MOL_ID: 1; COMPND 2 MOLECULE: SERINE/THREONINE-PROTEIN KINASE 3; COMPND 3 CHAIN: A, B, C, D; COMPND 4 FRAGMENT: SARAH DOMAIN, UNP RESIDUES 436-484; COMPND 5 SYNONYM: MAMMALIAN STE20-LIKE PROTEIN KINASE 2, MST-2, STE20-LIKE COMPND 6 KINASE …
10
grep