I have a file of software versions of the form a.b.c where a, b, and c are integers. For example
2.10.1
1.10.3
10.4.9
1.9.10
1.2.30
I have tried:
sort -k 1n -k1,3 -t $'.' versions
And this works but only on the first column. How do I specify sub-sorting on column 2 and 3?