grepping using the “|” alternative operator January 6, 2023 by Tarik You need to escape the |. The following should do the job. grep "gene\|exon" AT5G60410.gff