Answers for "how to extract extension and filename in shell"

2

extract file extension bash

FILE="/path/to/file.extension" 
echo "$FILE" | rev | cut -d '.' -f 1 | rev
Posted by: Guest on April-19-2021

Code answers related to "how to extract extension and filename in shell"

Browse Popular Code Answers by Language