Shell Script

Variable – filename handling

filename=$(basename -- "$fullfile")
extension="${filename##*.}"
filename="${filename%.*}"