Hi Geek,
Komal helped me by using the following awk command
awk '{
for (i = 1; I <= NF; i++) {
if ($i ~ /gene_id|gene_name/) {
printf "%s ", $(i+1)
}
}
print ""
}' Homo_sapiens.GRCh37.70.gtf | sed -e 's/"//g' -e 's/;//g' -e 's/ /\t/' | sort -k1,1 | uniq > Homo_sapiens.GRCh37.70.txt
and it works very well and I merged the result file with my file using R, So I wounder if we can add the source column in this command.