Remova a festa de extensão de arquivo
$ filename=foo.txt
$ echo "${filename%.*}"
foo
Cooperative Crab
$ filename=foo.txt
$ echo "${filename%.*}"
foo
find . -name "*.bak" -type f -delete
# try this first to see what will be deleted
find . -name "*.bak" -type f