Entfernen Sie die Dateierweiterungs -Bash
$ 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