If we want to separate filename from extension in bash this is a neat and useful trick:
filename=$(basename -- "$fullfile")
extension="${filename##*.}"
filename="${filename%.*}"
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.