正確な文字列を含む行を見つける

正確な文字列を含む行を見つける

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

関連情報