Knowledge Base
1 notes, collected in one place.
How to separate the filename from the extension
BASH filename=$(basename -- "$fullfile") extension="${filename##*.}" filename="${filename%.*}"
1 notes, collected in one place.
BASH filename=$(basename -- "$fullfile") extension="${filename##*.}" filename="${filename%.*}"