Parsing GTF file using command-line
Your code can be simplified with only awk script:

awk '/exon/ {gsub("[\";]","", $10);print $1,$4,$5,$7,$10}' file.gtk


gusb removes any occurrence " or ; in the 10th element.