How to get the latest patch-level version from a list of distinct versions using bash and awk. This idea was taken from https://stackoverflow.com/a/21103864/1006369
Supose you have the following list of versions:
v1.22.8
v1.22.9
v1.22.10 <-- latest v1.22 series
v1.23.1