I'm trying to retrieve exon ranges for a gene from GenBank format efetch -id NG_007086.2 -format gb -mode xml -db nucleotide | xtract -pattern GBFeature -match GBFeature_key: exon -first GBFeature_location
but it's giving me error message saying ERROR: Unexpected 'exon' argument after 'GBFeature_key', I tried to play around with GBFeature_key: exon, but couldn't get it right.
Since this answer works you can accept this as well. It is different from what @Pierre provided and actually answers your own question with same software package.
Since this answer works you can
accept
this as well. It is different from what @Pierre provided and actually answers your own question with same software package.