Answers for "bash get filename without extension"

6

remove file extension bash

$ filename=foo.txt
$ echo "${filename%.*}"
foo
Posted by: Guest on May-21-2020
0

bash get filename without extension

filename=$(basename -- "$fullfile")
extension="${filename##*.}"
filename="${filename%.*}"
Posted by: Guest on June-24-2021

Code answers related to "bash get filename without extension"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language