getting only the file name without extension ****${FILENAME%.*}
${FILENAME%.*}
getting only the extension ****${FILENAME##*.}
${FILENAME##*.}
remove first folder (until / ) ****${FILENAME#*/}
${FILENAME#*/}
getting filename ****${PATHNAME##*/}
${PATHNAME##*/}
Much more on https://wiki.bash-hackers.org/syntax/pe#substring_removalarrow-up-right
Last updated 4 years ago