echo ${string##*.} # this will show everything after last "."
Как я могу вернуть (отрицать) это - показать все до последнего "."