Answers for "bash remove extension"

6

remove file extension bash

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

bash remove extension

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

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language