I'd like to extract the extension out of a filename with multiple dots. For instance:
I should get "tar.gz", not "gz" or "0.tar.gz".
I prefer a solution not relying on bash exclusive features (using posix commands like
cut is ok).
EDIT: A reasonable solution could be: "get everything after the second-last dot, but exclude numbers or substrings with a lenght <=1"