Bash get file name without extension

$ basename memory/bash-get-file-name-without-extension.md .md
bash-get-file-name-without-extension