Answer the question
In order to leave comments, you need to log in
How to grep on a line that contains a semicolon; ?
Hello, I need to "grab" from such a line
ID=PMZ_0036570;Dbxref=InterPro:IPR000175,PANTHER:PTHR11616,PANTHER:PTHR11616:SF125,Pfam:PF00209,ProSiteProfiles:PS50267,SUPERFAMILY:SSF161070;Name=Slc6a18;desc=Sodium-dependent
Name=Slc6a18
) awk '{print $9}' PPP_genes.gff3.txt | head -3
awk '{print $9}' PPP_genes.gff3.txt | head -3 | grep "Name=" PPP_genes.gff3.txt
cut -d; -f 3
(this is the 3rd column) - I get an error, they say -d does not understand the semicolon ... Answer the question
In order to leave comments, you need to log in
awk '{print $9}' PPP_genes.gff3.txt | head -3 | cut -d";" -f 3
&&
echo ${BASH_REMATCH[1]}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question