file=/web/test/tt.txt

left=${file%.*}

right=${file##*.}