Shell

How to extract everything before the last dot in a string?

Difficulty: unrated

Source: bregman-arie/devops-exercises by Arie Bregman

Answer

${var%.*}