查找包含确切字符串的行

查找包含确切字符串的行

我有一个 csv 文件,我试图仅提取包含“Ann_Pet.Fal”的行。通过键入 应该非常简单grep -w "Ann_Pet.Fal" my.file。不幸的是它不起作用,我得到了任何带有“Ann_Pet *”的行。我想知道我是否应该尝试不同的代码!谢谢

homolog gene_name   gene    condition   pvalue  Comparison  Test    homology_p  Gene.Model.Name Gene.Model.Description  Gene.Model.Type Primary.Gene.Symbol All.Gene.Symbols
AT1G01040   Ha412HOChr01g0047951    gene4796    longitude_e 2.83E-07    Ann_Pet.Fal Spearman    0   AT1G01040.1 Encodes a Dicer homolog. Dicer is a RNA helicase involved in microRNA processing. Mutations in this locus can result in embryo lethality. Embryo shape at seed maturity is globular-elongate. Other mutants convert the floral meristems to an indeterminate state, others yet show defects in ovule development. mRNA is expressed in all shoot tissues. DCL1 is able to produce miRNAs and siRNAs. The mRNA is cell-to-cell mobile.   protein_coding  DICER-LIKE 1 (DCL1) DICER-LIKE 1 (DCL1);CARPEL FACTORY (CAF);SUSPENSOR 1 (SUS1);SHORT INTEGUMENTS 1 (SIN1);ABNORMAL SUSPENSOR 1 (ASU1);EMBRYO DEFECTIVE 76 (EMB76);EMBRYO DEFECTIVE 60 (EMB60);DICER-LIKE 1 (ATDCL1)
AT1G01040   Ha412HOChr01g0047951    gene4796    longitude_e 4.05E-05    Ann_Pet.Pet Spearman    0   AT1G01040.1 Encodes a Dicer homolog. Dicer is a RNA helicase involved in microRNA processing. Mutations in this locus can result in embryo lethality. Embryo shape at seed maturity is globular-elongate. Other mutants convert the floral meristems to an indeterminate state, others yet show defects in ovule development. mRNA is expressed in all shoot tissues. DCL1 is able to produce miRNAs and siRNAs. The mRNA is cell-to-cell mobile.   protein_coding  DICER-LIKE 1 (DCL1) DICER-LIKE 1 (DCL1);CARPEL FACTORY (CAF);SUSPENSOR 1 (SUS1);SHORT INTEGUMENTS 1 (SIN1);ABNORMAL SUSPENSOR 1 (ASU1);EMBRYO DEFECTIVE 76 (EMB76);EMBRYO DEFECTIVE 60 (EMB60);DICER-LIKE 1 (ATDCL1)
AT1G01140   Ha412HOChr17g0848051    gene84806   CMD_e   9.29E-06    Ann_Pet.Pet Spearman    0   AT1G01140.3 Encodes a CBL-interacting protein kinase with similarity to SOS2    protein_coding  CBL-INTERACTING PROTEIN KINASE 9 (CIPK9)    PROTEIN KINASE 6 (PKS6);CBL-INTERACTING PROTEIN KINASE 9 (CIPK9)
AT1G01140   Ha412HOChr17g0848051    gene84806   MAP_e   0.002926603 Ann_Pet.Pet Baypass 0   AT1G01140.3 Encodes a CBL-interacting protein kinase with similarity to SOS2    protein_coding  CBL-INTERACTING PROTEIN KINASE 9 (CIPK9)    PROTEIN KINASE 6 (PKS6);CBL-INTERACTING PROTEIN KINASE 9 (CIPK9)
AT1G01140   Ha412HOChr17g0848051    gene84806   longitude_e 1.89E-05    Ann_Pet Baypass 0   AT1G01140.3 Encodes a CBL-interacting protein kinase with similarity to SOS2    protein_coding  CBL-INTERACTING PROTEIN KINASE 9 (CIPK9)    PROTEIN KINASE 6 (PKS6);CBL-INTERACTING PROTEIN KINASE 9 (CIPK9)
AT1G01140   Ha412HOChr17g0848051    gene84806   MAP_e   0.002063857 Ann_Pet.Pet Spearman    0   AT1G01140.3 Encodes a CBL-interacting protein kinase with similarity to SOS2    protein_coding  CBL-INTERACTING PROTEIN KINASE 9 (CIPK9)    PROTEIN KINASE 6 (PKS6);CBL-INTERACTING PROTEIN KINASE 9 (CIPK9)
AT1G01140   Ha412HOChr17g0848051    gene84806   MSP_e   1.77E-05    Ann_Pet Baypass 0   AT1G01140.3 Encodes a CBL-interacting protein kinase with similarity to SOS2    protein_coding  CBL-INTERACTING PROTEIN KINASE 9 (CIPK9)    PROTEIN KINASE 6 (PKS6);CBL-INTERACTING PROTEIN KINASE 9 (CIPK9)
AT1G01140   Ha412HOChr17g0848051    gene84806   longitude_e 1.82E-05    Ann_Pet.Pet Baypass 0   AT1G01140.3 Encodes a CBL-interacting protein kinase with similarity to SOS2    protein_coding  CBL-INTERACTING PROTEIN KINASE 9 (CIPK9)    PROTEIN KINASE 6 (PKS6);CBL-INTERACTING PROTEIN KINASE 9 (CIPK9)
AT1G01140   Ha412HOChr17g0848051    gene84806   MSP_e   2.37E-05    Ann_Pet.Pet Baypass 0   AT1G01140.3 Encodes a CBL-interacting protein kinase with similarity to SOS2    protein_coding  CBL-INTERACTING PROTEIN KINASE 9 (CIPK9)    PROTEIN KINASE 6 (PKS6);CBL-INTERACTING PROTEIN KINASE 9 (CIPK9)
AT1G01140   Ha412HOChr17g0848051    gene84806   TD_e    0.000193093 Ann_Pet.Pet Spearman    0   AT1G01140.3 Encodes a CBL-interacting protein kinase with similarity to SOS2    protein_coding  CBL-INTERACTING PROTEIN KINASE 9 (CIPK9)    PROTEIN KINASE 6 (PKS6);CBL-INTERACTING PROTEIN KINASE 9 (CIPK9)
AT1G01170   Ha412HOChr10g0446241    gene44625   AHM_e   0.000202829 Ann_Pet Spearman    8.30E-36    AT1G01170.1 ozone-responsive stress-like protein (DUF1138);(source:Araport11)   protein_coding      

答案1

您可以尝试使用下面提到的awk命令

awk '/Ann_Pet\.Fal/' filename

相关内容