I want to remove the decimal from the ensembl gene ID ,since it contains the decimal point it becomes difficult when i try to map the same to gene name .

    gene	               "nH1.bam"	"nH2.bam"	"nH3.bam"	           "nH4.bam"
    "ENSG00000238164.4"	-0.6534833425	-0.6404869759	-0.5898568965	-0.586357257
    "ENSG00000049249.6"	1.0589150487	0.2235087421	0.5028436068	0.5201173416

I want this in my gene field "ENSG00000049249" instead of this "ENSG00000049249.6"

I tried this  `awk '{gsub(/\..*$/,$1)}1'` it seems it messing up the data frame im not sure what im doing wrong.

Any help or suggestion would be highly appreciated 



    sed 's/\(ENSG[0-9]*\)\.[0-9]*/\1/g' input.txt