John Mayson's Website
How to separate the filename from the extension
BASH
John Mayson's Website
How to separate the filename from the extension
View page source
How to separate the filename from the extension
BASH
filename
=
$(
basename
--
"
$fullfile
"
)
extension
=
"
${
filename
##*.
}
"
filename
=
"
${
filename
%.*
}
"