Hapus Bash Ekstensi File

$ filename=foo.txt
$ echo "${filename%.*}"
foo
Cooperative Crab