I have a list of version numbers, let's say for instance that they are in a file versions.txt
1.2.100.4
1.2.3.4
10.1.2.3
9.1.2.3
I wish to sort them so that they are sorted by version. i.e:
1.2.3.4
1.2.100.4
9.1.2.3
10.1.2.3
I have tried using various sort commands using the "k" parameters, but do not really understand it well enough to pull it off. Any help would be appreciated.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…