The . is an expression that matches a single character. If you want to match a literal '.' you need to escape it. The following returns filenametxtext:
Code:
echo filename.txt.ext | sed -e 's/\.//g'
I assume you have the sed expression wrapped in a loop that mv's files?