extract file extension bash code example
Example: extract file extension bash
FILE="/path/to/file.extension"
echo "$FILE" | rev | cut -d '.' -f 1 | rev
FILE="/path/to/file.extension"
echo "$FILE" | rev | cut -d '.' -f 1 | rev