You can use ${file%-*}to return the desired file name. The following code goes through all the files whose name ends with html-bakand renames, deleting everything after the last dash:
for file in *html-bak
do
echo "mv $file ${file%-*}"
done
${var%-*} * $var. , , - :
$ file="1.h-tml-bak"
$ echo ${file%-*}
1.h-tml
, , , 4 :
$ echo ${file:0:-4}
1.h-tml