Is there any way to compare such strings on bash, e.g.: 2.4.5 and 2.8 and 2.4.5.1?
2.4.5
2.8
2.4.5.1
For old version/busybox sort. Simple form provide roughly result and often works.
sort
sort -n
This is escpecial useful on version which contains alpha symbols like
10.c.3 10.a.4 2.b.5