[opensuse] bash: how to get file extension