In case you need to separate a filename from an extension in bash here is a way:
filename=$(basename -- "$fullfile") extension="${filename##*.}" filename="${filename%.*}"
In case you need to separate a filename from an extension in bash here is a way:
filename=$(basename -- "$fullfile") extension="${filename##*.}" filename="${filename%.*}"
Website: https://www.tomek.cedro.info