Hapus Bash Ekstensi File
$ filename=foo.txt
$ echo "${filename%.*}"
foo
Cooperative Crab
$ filename=foo.txt
$ echo "${filename%.*}"
foo
filename=$(basename -- "$fullfile")
extension="${filename##*.}"
filename="${filename%.*}"