bash extract file extension 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